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

OMAPDSS: picodlp panel: remove platform_enable/disable callbacks

The picodlp 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_generic_dpi_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
b3fb8b98 d52e2e75

-12
-12
drivers/video/omap2/displays/panel-picodlp.c
··· 354 354 struct picodlp_data *picod = dev_get_drvdata(&dssdev->dev); 355 355 struct picodlp_panel_data *picodlp_pdata = get_panel_data(dssdev); 356 356 357 - if (dssdev->platform_enable) { 358 - r = dssdev->platform_enable(dssdev); 359 - if (r) 360 - return r; 361 - } 362 - 363 357 gpio_set_value(picodlp_pdata->pwrgood_gpio, 0); 364 358 msleep(1); 365 359 gpio_set_value(picodlp_pdata->pwrgood_gpio, 1); ··· 392 398 err: 393 399 omapdss_dpi_display_disable(dssdev); 394 400 err1: 395 - if (dssdev->platform_disable) 396 - dssdev->platform_disable(dssdev); 397 - 398 401 return r; 399 402 } 400 403 ··· 403 412 404 413 gpio_set_value(picodlp_pdata->emu_done_gpio, 0); 405 414 gpio_set_value(picodlp_pdata->pwrgood_gpio, 0); 406 - 407 - if (dssdev->platform_disable) 408 - dssdev->platform_disable(dssdev); 409 415 } 410 416 411 417 static int picodlp_panel_probe(struct omap_dss_device *dssdev)