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-am3517evm.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-am3517evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 8532d6e0d53a..634fe65b33c8 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -378,24 +378,12 @@ static struct omap_dss_board_info am3517_evm_dss_data = { | |||
378 | .default_device = &am3517_evm_lcd_device, | 378 | .default_device = &am3517_evm_lcd_device, |
379 | }; | 379 | }; |
380 | 380 | ||
381 | static struct platform_device am3517_evm_dss_device = { | ||
382 | .name = "omapdss", | ||
383 | .id = -1, | ||
384 | .dev = { | ||
385 | .platform_data = &am3517_evm_dss_data, | ||
386 | }, | ||
387 | }; | ||
388 | |||
389 | /* | 381 | /* |
390 | * Board initialization | 382 | * Board initialization |
391 | */ | 383 | */ |
392 | static struct omap_board_config_kernel am3517_evm_config[] __initdata = { | 384 | static struct omap_board_config_kernel am3517_evm_config[] __initdata = { |
393 | }; | 385 | }; |
394 | 386 | ||
395 | static struct platform_device *am3517_evm_devices[] __initdata = { | ||
396 | &am3517_evm_dss_device, | ||
397 | }; | ||
398 | |||
399 | static void __init am3517_evm_init_early(void) | 387 | static void __init am3517_evm_init_early(void) |
400 | { | 388 | { |
401 | omap_board_config = am3517_evm_config; | 389 | omap_board_config = am3517_evm_config; |
@@ -498,9 +486,7 @@ static void __init am3517_evm_init(void) | |||
498 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 486 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
499 | 487 | ||
500 | am3517_evm_i2c_init(); | 488 | am3517_evm_i2c_init(); |
501 | platform_add_devices(am3517_evm_devices, | 489 | omap_display_init(&am3517_evm_dss_data); |
502 | ARRAY_SIZE(am3517_evm_devices)); | ||
503 | |||
504 | omap_serial_init(); | 490 | omap_serial_init(); |
505 | 491 | ||
506 | /* Configure GPIO for EHCI port */ | 492 | /* Configure GPIO for EHCI port */ |