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>
This commit is contained in:
committed by
Tomi Valkeinen
parent
b7ee79abcc
commit
d5e13227c3
@@ -195,14 +195,6 @@ static struct omap_dss_board_info devkit8000_dss_data = {
|
||||
.default_device = &devkit8000_lcd_device,
|
||||
};
|
||||
|
||||
static struct platform_device devkit8000_dss_device = {
|
||||
.name = "omapdss",
|
||||
.id = -1,
|
||||
.dev = {
|
||||
.platform_data = &devkit8000_dss_data,
|
||||
},
|
||||
};
|
||||
|
||||
static struct regulator_consumer_supply devkit8000_vdda_dac_supply =
|
||||
REGULATOR_SUPPLY("vdda_dac", "omapdss");
|
||||
|
||||
@@ -579,7 +571,6 @@ static void __init omap_dm9000_init(void)
|
||||
}
|
||||
|
||||
static struct platform_device *devkit8000_devices[] __initdata = {
|
||||
&devkit8000_dss_device,
|
||||
&leds_gpio,
|
||||
&keys_gpio,
|
||||
&omap_dm9000_dev,
|
||||
@@ -801,6 +792,7 @@ static void __init devkit8000_init(void)
|
||||
platform_add_devices(devkit8000_devices,
|
||||
ARRAY_SIZE(devkit8000_devices));
|
||||
|
||||
omap_display_init(&devkit8000_dss_data);
|
||||
spi_register_board_info(devkit8000_spi_board_info,
|
||||
ARRAY_SIZE(devkit8000_spi_board_info));
|
||||
|
||||
|
Reference in New Issue
Block a user