diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/displays/panel-dpi.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c index 3ef4596a3698..eee44d9ea0c3 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c @@ -45,39 +45,27 @@ static void panel_dpi_disconnect(struct omap_dss_device *src, { } -static int panel_dpi_enable(struct omap_dss_device *dssdev) +static void panel_dpi_enable(struct omap_dss_device *dssdev) { struct panel_drv_data *ddata = to_panel_data(dssdev); - struct omap_dss_device *src = dssdev->src; int r; - r = src->ops->enable(src); - if (r) - return r; - r = regulator_enable(ddata->vcc_supply); - if (r) { - src->ops->disable(src); - return r; - } + if (r) + return; gpiod_set_value_cansleep(ddata->enable_gpio, 1); backlight_enable(ddata->backlight); - - return 0; } static void panel_dpi_disable(struct omap_dss_device *dssdev) { struct panel_drv_data *ddata = to_panel_data(dssdev); - struct omap_dss_device *src = dssdev->src; backlight_disable(ddata->backlight); gpiod_set_value_cansleep(ddata->enable_gpio, 0); regulator_disable(ddata->vcc_supply); - - src->ops->disable(src); } static void panel_dpi_get_timings(struct omap_dss_device *dssdev, |