summaryrefslogtreecommitdiff
path: root/drivers/video/mcde/display-sony_acx424akp_dsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/mcde/display-sony_acx424akp_dsi.c')
-rw-r--r--drivers/video/mcde/display-sony_acx424akp_dsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/mcde/display-sony_acx424akp_dsi.c b/drivers/video/mcde/display-sony_acx424akp_dsi.c
index b570e832893..b8fbe708893 100644
--- a/drivers/video/mcde/display-sony_acx424akp_dsi.c
+++ b/drivers/video/mcde/display-sony_acx424akp_dsi.c
@@ -285,9 +285,9 @@ static int __devinit sony_acx424akp_probe(struct mcde_display_device *dev)
* This is the case here, the display driver has to
* enable the regulator for the display.
*/
- if (dev->power_mode == MCDE_DISPLAY_PM_STANDBY) {
+ if (dev->power_mode != MCDE_DISPLAY_PM_OFF) {
(void) regulator_enable(di->regulator);
- } else if (dev->power_mode == MCDE_DISPLAY_PM_OFF) {
+ } else {
power_on(dev);
dev->power_mode = MCDE_DISPLAY_PM_STANDBY;
}