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

OMAPDSS: tpo-td043: remove platform_enable/disable callbacks

The tpo-td043 panel driver now manages the gpios required to configure the panel.
This was previously done in omap_dss_device'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_tpo_td043_data struct, which is needed by the panel driver to
configure the gpios connected to the panel. Hence, the 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
3552fb78 7eab07e4

-9
-9
drivers/video/omap2/displays/panel-tpo-td043mtea1.c
··· 351 351 if (r) 352 352 goto err0; 353 353 354 - if (dssdev->platform_enable) { 355 - r = dssdev->platform_enable(dssdev); 356 - if (r) 357 - goto err1; 358 - } 359 - 360 354 /* 361 355 * If we are resuming from system suspend, SPI clocks might not be 362 356 * enabled yet, so we'll program the LCD from SPI PM resume callback. ··· 376 382 377 383 if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) 378 384 return; 379 - 380 - if (dssdev->platform_disable) 381 - dssdev->platform_disable(dssdev); 382 385 383 386 omapdss_dpi_display_disable(dssdev); 384 387