diff options
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/l4f00242t03.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c index 5d25743bf8e2..1fcaaf3d78e1 100644 --- a/drivers/video/backlight/l4f00242t03.c +++ b/drivers/video/backlight/l4f00242t03.c | |||
@@ -134,10 +134,12 @@ static int l4f00242t03_lcd_power_set(struct lcd_device *ld, int power) | |||
134 | } | 134 | } |
135 | } else { | 135 | } else { |
136 | /* power == FB_BLANK_POWERDOWN */ | 136 | /* power == FB_BLANK_POWERDOWN */ |
137 | /* Clear the screen before shutting down */ | 137 | if (priv->lcd_state != FB_BLANK_POWERDOWN) { |
138 | spi_write(spi, (const u8 *)&disoff, sizeof(u16)); | 138 | /* Clear the screen before shutting down */ |
139 | msleep(60); | 139 | spi_write(spi, (const u8 *)&disoff, sizeof(u16)); |
140 | l4f00242t03_lcd_powerdown(spi); | 140 | msleep(60); |
141 | l4f00242t03_lcd_powerdown(spi); | ||
142 | } | ||
141 | } | 143 | } |
142 | 144 | ||
143 | priv->lcd_state = power; | 145 | priv->lcd_state = power; |