Message ID | AANLkTi=rq_myAkvRJLdZ3yHHTNr7sPYF2K9pEK-QEMtB@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Tomi Valkeinen |
Headers | show |
diff --git a/drivers/video/omap2/displays/panel-generic.c b/drivers/video/omap2/displays/panel-generic.c index 300eff5..abc03f4 100644 --- a/drivers/video/omap2/displays/panel-generic.c +++ b/drivers/video/omap2/displays/panel-generic.c @@ -91,9 +91,12 @@ static int generic_panel_enable(struct omap_dss_device *dssdev) static void generic_panel_disable(struct omap_dss_device *dssdev) { - generic_panel_power_off(dssdev); + if(dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) + { + generic_panel_power_off(dssdev); - dssdev->state = OMAP_DSS_DISPLAY_DISABLED; + dssdev->state = OMAP_DSS_DISPLAY_DISABLED; + } }