Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Archit Taneja <archit@ti.com>

authored by

Archit Taneja and committed by
Tomi Valkeinen
af9f6c35 64f93897

-12
-12
drivers/video/omap2/displays/panel-n8x0.c
··· 295 295 296 296 gpio_direction_output(bdata->ctrl_pwrdown, 1); 297 297 298 - if (bdata->platform_enable) { 299 - r = bdata->platform_enable(dssdev); 300 - if (r) 301 - goto err_plat_en; 302 - } 303 - 304 298 omapdss_rfbi_set_size(dssdev, dssdev->panel.timings.x_res, 305 299 dssdev->panel.timings.y_res); 306 300 omapdss_rfbi_set_pixel_size(dssdev, dssdev->ctrl.pixel_size); ··· 367 373 err_inv_chip: 368 374 omapdss_rfbi_display_disable(dssdev); 369 375 err_rfbi_en: 370 - if (bdata->platform_disable) 371 - bdata->platform_disable(dssdev); 372 - err_plat_en: 373 376 gpio_direction_output(bdata->ctrl_pwrdown, 0); 374 377 return r; 375 378 } ··· 382 391 383 392 send_display_off(spi); 384 393 send_sleep_in(spi); 385 - 386 - if (bdata->platform_disable) 387 - bdata->platform_disable(dssdev); 388 394 389 395 /* 390 396 * HACK: we should turn off the panel here, but there is some problem