diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-12-10 06:52:55 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-17 07:00:41 -0400 |
commit | 679852dbee81c81c1165fe08b6cefd28252b463c (patch) | |
tree | 8e5f4c234d20f0f4cecd602110336802ff4d964b | |
parent | 12ca755ba1c8714175f55ac069d8b51d9448778c (diff) |
OMAPDSS: fix dss_get_ctx_loss_count for DT
When using DT, dss device does not have platform data. However,
dss_get_ctx_loss_count() uses dss device's platform data to find the
get_ctx_loss_count function pointer.
To fix this, dss_get_ctx_loss_count() needs to be changed to get the
platform data from the omapdss device, which is a "virtual" device and
always has platform data.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 94f66f9f10a3..bd01608e67e2 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -157,7 +157,8 @@ static void dss_restore_context(void) | |||
157 | 157 | ||
158 | int dss_get_ctx_loss_count(void) | 158 | int dss_get_ctx_loss_count(void) |
159 | { | 159 | { |
160 | struct omap_dss_board_info *board_data = dss.pdev->dev.platform_data; | 160 | struct platform_device *core_pdev = dss_get_core_pdev(); |
161 | struct omap_dss_board_info *board_data = core_pdev->dev.platform_data; | ||
161 | int cnt; | 162 | int cnt; |
162 | 163 | ||
163 | if (!board_data->get_context_loss_count) | 164 | if (!board_data->get_context_loss_count) |