aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2011-02-20 00:45:12 -0800
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-02-21 23:10:47 -0500
commitc23cd720abfbc707982c03bd9aef7529a3b361da (patch)
treee47c3796705792d77f2aea80f1f29b8df7b9df5e
parentc49ece138bc098625db74e3fa32705a7a77edad0 (diff)
downloadlinux-linaro-c23cd720abfbc707982c03bd9aef7529a3b361da.tar.gz
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.c14
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);