diff options
author | Andy Doan <andy.doan@linaro.org> | 2011-02-20 00:45:12 -0800 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2011-02-21 10:30:36 -0800 |
commit | 4e1f633cc10dcc4c51428000cf2f39adfc2730f9 (patch) | |
tree | 505a6e568139caa84811748731a77f5e5073f891 | |
parent | 6b0c32b59ca87da5803875dae017c5ef3908ed85 (diff) |
OMAP: DSS2: replace platform_device_register with omap_display_init
based on commit(d4cc8c9b1ef3dc48af305175222eea482534d260)
This patch replaces platform_add_devices of DSS with omap_display_init().
This moves away registration of DSS from board files into a common place.
Signed-off-by: Andy Doan <andy.doan@linaro.org>
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index c21b3b83c5b..a0fbf639265 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -339,14 +339,6 @@ static struct omap_dss_board_info overo_dss_data = { .default_device = &overo_dvi_device, }; -static struct platform_device overo_dss_device = { - .name = "omap_display", - .id = -1, - .dev = { - .platform_data = &overo_dss_data, - }, -}; - static struct regulator_consumer_supply overo_vdda_dac_supply = REGULATOR_SUPPLY("vdda_dac", "omap_display"); @@ -592,10 +584,6 @@ static void __init overo_init_irq(void) omap_init_irq(); } -static struct platform_device *overo_devices[] __initdata = { - &overo_dss_device, -}; - static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, @@ -623,7 +611,7 @@ static void __init overo_init(void) { omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); overo_i2c_init(); - platform_add_devices(overo_devices, ARRAY_SIZE(overo_devices)); + omap_display_init(&overo_dss_data); omap_serial_init(); overo_flash_init(); usb_musb_init(&musb_board_data); |