1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-12 16:14:05 +02:00

[adm8668] use platform_add_devices

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34545 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2012-12-06 22:39:22 +00:00
parent 4830146dfe
commit ec09388d8d

View File

@ -77,12 +77,14 @@ static struct platform_device adm8668_eth1_device = {
.num_resources = ARRAY_SIZE(eth1_resources), .num_resources = ARRAY_SIZE(eth1_resources),
}; };
static struct platform_device *adm8668_devs[] = {
&adm8668_uart_device,
&adm8668_eth0_device,
&adm8668_eth1_device,
};
int __devinit adm8668_devs_register(void) int __devinit adm8668_devs_register(void)
{ {
platform_device_register(&adm8668_uart_device); return platform_add_devices(adm8668_devs, ARRAY_SIZE(adm8668_devs));
platform_device_register(&adm8668_eth0_device);
platform_device_register(&adm8668_eth1_device);
return 0;
} }
arch_initcall(adm8668_devs_register); arch_initcall(adm8668_devs_register);