diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/dss/display.c | 5 |
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) | |||
545 | static int dss_disable_device(struct device *dev, void *data) | 545 | static 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 | ||