diff options
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/displays/panel-generic-dpi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic-dpi.c index 5c75e4de073c..97363f733683 100644 --- a/drivers/video/omap2/displays/panel-generic-dpi.c +++ b/drivers/video/omap2/displays/panel-generic-dpi.c @@ -553,20 +553,13 @@ static int generic_dpi_panel_power_on(struct omap_dss_device *dssdev) if (panel_config->power_on_delay) msleep(panel_config->power_on_delay); - if (panel_data->platform_enable) { - r = panel_data->platform_enable(dssdev); - if (r) - goto err1; - } - for (i = 0; i < panel_data->num_gpios; ++i) { gpio_set_value_cansleep(panel_data->gpios[i], panel_data->gpio_invert[i] ? 0 : 1); } return 0; -err1: - omapdss_dpi_display_disable(dssdev); + err0: return r; } @@ -586,9 +579,6 @@ static void generic_dpi_panel_power_off(struct omap_dss_device *dssdev) panel_data->gpio_invert[i] ? 1 : 0); } - if (panel_data->platform_disable) - panel_data->platform_disable(dssdev); - /* wait couple of vsyncs after disabling the LCD */ if (panel_config->power_off_delay) msleep(panel_config->power_off_delay); |