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-devkit8000.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-devkit8000.c')
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index af742887e834..54abdd064364 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -195,14 +195,6 @@ static struct omap_dss_board_info devkit8000_dss_data = { | |||
195 | .default_device = &devkit8000_lcd_device, | 195 | .default_device = &devkit8000_lcd_device, |
196 | }; | 196 | }; |
197 | 197 | ||
198 | static struct platform_device devkit8000_dss_device = { | ||
199 | .name = "omapdss", | ||
200 | .id = -1, | ||
201 | .dev = { | ||
202 | .platform_data = &devkit8000_dss_data, | ||
203 | }, | ||
204 | }; | ||
205 | |||
206 | static struct regulator_consumer_supply devkit8000_vdda_dac_supply = | 198 | static struct regulator_consumer_supply devkit8000_vdda_dac_supply = |
207 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); | 199 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); |
208 | 200 | ||
@@ -579,7 +571,6 @@ static void __init omap_dm9000_init(void) | |||
579 | } | 571 | } |
580 | 572 | ||
581 | static struct platform_device *devkit8000_devices[] __initdata = { | 573 | static struct platform_device *devkit8000_devices[] __initdata = { |
582 | &devkit8000_dss_device, | ||
583 | &leds_gpio, | 574 | &leds_gpio, |
584 | &keys_gpio, | 575 | &keys_gpio, |
585 | &omap_dm9000_dev, | 576 | &omap_dm9000_dev, |
@@ -801,6 +792,7 @@ static void __init devkit8000_init(void) | |||
801 | platform_add_devices(devkit8000_devices, | 792 | platform_add_devices(devkit8000_devices, |
802 | ARRAY_SIZE(devkit8000_devices)); | 793 | ARRAY_SIZE(devkit8000_devices)); |
803 | 794 | ||
795 | omap_display_init(&devkit8000_dss_data); | ||
804 | spi_register_board_info(devkit8000_spi_board_info, | 796 | spi_register_board_info(devkit8000_spi_board_info, |
805 | ARRAY_SIZE(devkit8000_spi_board_info)); | 797 | ARRAY_SIZE(devkit8000_spi_board_info)); |
806 | 798 | ||