Commit af9f6c35 authored by Archit Taneja's avatar Archit Taneja Committed by Tomi Valkeinen

OMAPDSS: n8x0 panel: remove use of platform_enable/disable

The n8x0 panel driver now manages the gpios required to configure the panel.
This was previously done in panel_n8x0_data's platform_enable/disable callbacks
defined in board files using this panel.

All the board files using this panel now pass the gpio information as platform
data via the panel_n8x0_data struct, which is needed by the panel driver to
configure the gpios connected to the panel. Hence, the uses of
platform_enable/disable ops can be safely removed now.
Signed-off-by: default avatarArchit Taneja <archit@ti.com>
parent 64f93897
...@@ -295,12 +295,6 @@ static int n8x0_panel_power_on(struct omap_dss_device *dssdev) ...@@ -295,12 +295,6 @@ static int n8x0_panel_power_on(struct omap_dss_device *dssdev)
gpio_direction_output(bdata->ctrl_pwrdown, 1); gpio_direction_output(bdata->ctrl_pwrdown, 1);
if (bdata->platform_enable) {
r = bdata->platform_enable(dssdev);
if (r)
goto err_plat_en;
}
omapdss_rfbi_set_size(dssdev, dssdev->panel.timings.x_res, omapdss_rfbi_set_size(dssdev, dssdev->panel.timings.x_res,
dssdev->panel.timings.y_res); dssdev->panel.timings.y_res);
omapdss_rfbi_set_pixel_size(dssdev, dssdev->ctrl.pixel_size); omapdss_rfbi_set_pixel_size(dssdev, dssdev->ctrl.pixel_size);
...@@ -373,9 +367,6 @@ static int n8x0_panel_power_on(struct omap_dss_device *dssdev) ...@@ -373,9 +367,6 @@ static int n8x0_panel_power_on(struct omap_dss_device *dssdev)
err_inv_chip: err_inv_chip:
omapdss_rfbi_display_disable(dssdev); omapdss_rfbi_display_disable(dssdev);
err_rfbi_en: err_rfbi_en:
if (bdata->platform_disable)
bdata->platform_disable(dssdev);
err_plat_en:
gpio_direction_output(bdata->ctrl_pwrdown, 0); gpio_direction_output(bdata->ctrl_pwrdown, 0);
return r; return r;
} }
...@@ -392,9 +383,6 @@ static void n8x0_panel_power_off(struct omap_dss_device *dssdev) ...@@ -392,9 +383,6 @@ static void n8x0_panel_power_off(struct omap_dss_device *dssdev)
send_display_off(spi); send_display_off(spi);
send_sleep_in(spi); send_sleep_in(spi);
if (bdata->platform_disable)
bdata->platform_disable(dssdev);
/* /*
* HACK: we should turn off the panel here, but there is some problem * HACK: we should turn off the panel here, but there is some problem
* with the initialization sequence, and we fail to init the panel if we * with the initialization sequence, and we fail to init the panel if we
......
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