Commit 7f496cfd authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Tomi Valkeinen

fbdev: omap2: panel-dpi: in .disable first disable backlight then display

This makes .disable operate in reverse order compared to .enable.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 85d90b12
...@@ -102,12 +102,12 @@ static void panel_dpi_disable(struct omap_dss_device *dssdev) ...@@ -102,12 +102,12 @@ static void panel_dpi_disable(struct omap_dss_device *dssdev)
if (!omapdss_device_is_enabled(dssdev)) if (!omapdss_device_is_enabled(dssdev))
return; return;
if (ddata->enable_gpio)
gpiod_set_value_cansleep(ddata->enable_gpio, 0);
if (gpio_is_valid(ddata->backlight_gpio)) if (gpio_is_valid(ddata->backlight_gpio))
gpio_set_value_cansleep(ddata->backlight_gpio, 0); gpio_set_value_cansleep(ddata->backlight_gpio, 0);
if (ddata->enable_gpio)
gpiod_set_value_cansleep(ddata->enable_gpio, 0);
in->ops.dpi->disable(in); in->ops.dpi->disable(in);
dssdev->state = OMAP_DSS_DISPLAY_DISABLED; dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment