diff options
Diffstat (limited to 'drivers/video/omap2/displays/panel-tpo-td043mtea1.c')
-rw-r--r-- | drivers/video/omap2/displays/panel-tpo-td043mtea1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c index e866e76b13d0..dbe9d43b4850 100644 --- a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c | |||
@@ -269,6 +269,9 @@ static int tpo_td043_power_on(struct omap_dss_device *dssdev) | |||
269 | int nreset_gpio = dssdev->reset_gpio; | 269 | int nreset_gpio = dssdev->reset_gpio; |
270 | int r; | 270 | int r; |
271 | 271 | ||
272 | if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) | ||
273 | return 0; | ||
274 | |||
272 | r = omapdss_dpi_display_enable(dssdev); | 275 | r = omapdss_dpi_display_enable(dssdev); |
273 | if (r) | 276 | if (r) |
274 | goto err0; | 277 | goto err0; |
@@ -308,6 +311,9 @@ static void tpo_td043_power_off(struct omap_dss_device *dssdev) | |||
308 | struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev); | 311 | struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev); |
309 | int nreset_gpio = dssdev->reset_gpio; | 312 | int nreset_gpio = dssdev->reset_gpio; |
310 | 313 | ||
314 | if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) | ||
315 | return; | ||
316 | |||
311 | tpo_td043_write(tpo_td043->spi, 3, | 317 | tpo_td043_write(tpo_td043->spi, 3, |
312 | TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM); | 318 | TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM); |
313 | 319 | ||