summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorTomi Valkeinen2012-12-10 12:52:55 +0100
committerTomi Valkeinen2013-06-17 13:00:41 +0200
commit679852dbee81c81c1165fe08b6cefd28252b463c (patch)
tree8e5f4c234d20f0f4cecd602110336802ff4d964b /drivers/video
parentOMAPDSS: add omap_dss_find_output_by_node() (diff)
downloadkernel-qcow2-linux-679852dbee81c81c1165fe08b6cefd28252b463c.tar.gz
kernel-qcow2-linux-679852dbee81c81c1165fe08b6cefd28252b463c.tar.xz
kernel-qcow2-linux-679852dbee81c81c1165fe08b6cefd28252b463c.zip
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/dss/dss.c3
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)
int dss_get_ctx_loss_count(void)
{
- struct omap_dss_board_info *board_data = dss.pdev->dev.platform_data;
+ struct platform_device *core_pdev = dss_get_core_pdev();
+ struct omap_dss_board_info *board_data = core_pdev->dev.platform_data;
int cnt;
if (!board_data->get_context_loss_count)