diff options
| author | Senthilvadivu Guruswamy <svadivu@ti.com> | 2011-02-22 04:24:50 -0500 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-02-23 02:34:25 -0500 |
| commit | d5e13227c32f12de3afb2e26a86bc9f3e5aaf7b6 (patch) | |
| tree | 209fdc2805cff6082667ee839e5d88e597af0414 /arch/arm/mach-omap2/board-cm-t35.c | |
| parent | b7ee79abcc1bd549eadf5a9852657058e6ecca47 (diff) | |
OMAP2, 3: DSS2: board files: replace platform_device_register with omap_display_init()
This patch updated board files to replace platform_device_register or
platform_add_devices of DSS with omap_display_init(). This moves away
registration of DSS from board files into a common place.
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
| -rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index d650b7f8078b..7311824be993 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
| @@ -401,14 +401,6 @@ static struct omap_dss_board_info cm_t35_dss_data = { | |||
| 401 | .default_device = &cm_t35_dvi_device, | 401 | .default_device = &cm_t35_dvi_device, |
| 402 | }; | 402 | }; |
| 403 | 403 | ||
| 404 | static struct platform_device cm_t35_dss_device = { | ||
| 405 | .name = "omapdss", | ||
| 406 | .id = -1, | ||
| 407 | .dev = { | ||
| 408 | .platform_data = &cm_t35_dss_data, | ||
| 409 | }, | ||
| 410 | }; | ||
| 411 | |||
| 412 | static struct omap2_mcspi_device_config tdo24m_mcspi_config = { | 404 | static struct omap2_mcspi_device_config tdo24m_mcspi_config = { |
| 413 | .turbo_mode = 0, | 405 | .turbo_mode = 0, |
| 414 | .single_channel = 1, /* 0: slave, 1: master */ | 406 | .single_channel = 1, /* 0: slave, 1: master */ |
| @@ -468,7 +460,7 @@ static void __init cm_t35_init_display(void) | |||
| 468 | msleep(50); | 460 | msleep(50); |
| 469 | gpio_set_value(lcd_en_gpio, 1); | 461 | gpio_set_value(lcd_en_gpio, 1); |
| 470 | 462 | ||
| 471 | err = platform_device_register(&cm_t35_dss_device); | 463 | err = omap_display_init(&cm_t35_dss_data); |
| 472 | if (err) { | 464 | if (err) { |
| 473 | pr_err("CM-T35: failed to register DSS device\n"); | 465 | pr_err("CM-T35: failed to register DSS device\n"); |
| 474 | goto err_dev_reg; | 466 | goto err_dev_reg; |
