Commit ca26996f authored by Deepak Saxena's avatar Deepak Saxena

[ARM] IXP4xx: platform_add_device() to platform_add_devices() conversion

Signed-off-by: default avatarDeepak Saxena <dsaxena@plexity.net>
parent afb7238d
......@@ -63,7 +63,7 @@ static struct resource coyote_flash_resource = {
.flags = IORESOURCE_MEM,
};
static struct platform_device coyote_flash_device = {
static struct platform_device coyote_flash = {
.name = "IXP4XX-Flash",
.id = 0,
.dev = {
......@@ -73,9 +73,13 @@ static struct platform_device coyote_flash_device = {
.resource = &coyote_flash_resource,
};
static struct platform_device *coyote_devices[] __initdata = {
&coyote_flash
};
static void __init coyote_init(void)
{
platform_add_device(&coyote_flash_device);
platform_add_devices(&coyote_devices, ARRAY_SIZE(coyote_devices));
}
MACHINE_START(ADI_COYOTE, "ADI Engineering IXP4XX Coyote Development Platform")
......
......@@ -77,7 +77,7 @@ static struct resource ixdp425_flash_resource = {
.flags = IORESOURCE_MEM,
};
static struct platform_device ixdp425_flash_device = {
static struct platform_device ixdp425_flash = {
.name = "IXP4XX-Flash",
.id = 0,
.dev = {
......@@ -101,10 +101,14 @@ static struct platform_device ixdp425_i2c_controller = {
.num_resources = 0
};
static struct platform_device *ixdp425_devices[] __initdata = {
&ixdp425_i2c_controller,
&ixdp425_flash
};
static void __init ixdp425_init(void)
{
platform_add_device(&ixdp425_flash_device);
platform_add_device(&ixdp425_i2c_controller);
platform_add_devices(&ixdp425_devices, ARRAY_SIZE(ixdp425_devices));
}
MACHINE_START(IXDP425, "Intel IXDP425 Development Platform")
......
......@@ -63,7 +63,7 @@ static struct resource prpmc1100_flash_resource = {
.flags = IORESOURCE_MEM,
};
static struct platform_device prpmc1100_flash_device = {
static struct platform_device prpmc1100_flash = {
.name = "IXP4XX-Flash",
.id = 0,
.dev = {
......@@ -73,9 +73,13 @@ static struct platform_device prpmc1100_flash_device = {
.resource = &prpmc1100_flash_resource,
};
static struct platform_device *prpmc1100_devices[] __initdata = {
&prpmc1100_flash
};
static void __init prpmc1100_init(void)
{
platform_add_device(&prpmc1100_flash_device);
platform_add_devices(&prpmc1100_devices, ARRAY_SIZE(prpmc1100_devices));
}
MACHINE_START(PRPMC1100, "Motorola PrPMC1100")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment