aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorJani Nikula <ext-jani.1.nikula@nokia.com>2010-03-24 06:59:38 -0400
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-05-18 07:14:30 -0400
commit279fcd48c4a426050422b2d196fd99c2b5ae7d71 (patch)
tree37c3cdf3a9d2ba9fbbf09389821335eca01c5e4e /drivers/video/omap2
parent35bc42c50432d3dde0119f7630f1e4574bd67519 (diff)
OMAP: DSS2: Fix device disable when driver is not loaded
Only call driver disable when device isn't already disabled, which also handles the driver not loaded case. Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r--drivers/video/omap2/dss/display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c
index 71389630b108..ef8c8529dda2 100644
--- a/drivers/video/omap2/dss/display.c
+++ b/drivers/video/omap2/dss/display.c
@@ -545,7 +545,10 @@ int dss_resume_all_devices(void)
545static int dss_disable_device(struct device *dev, void *data) 545static int dss_disable_device(struct device *dev, void *data)
546{ 546{
547 struct omap_dss_device *dssdev = to_dss_device(dev); 547 struct omap_dss_device *dssdev = to_dss_device(dev);
548 dssdev->driver->disable(dssdev); 548
549 if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED)
550 dssdev->driver->disable(dssdev);
551
549 return 0; 552 return 0;
550} 553}
551 554