diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-12-06 22:39:22 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-12-06 22:39:22 +0000 |
commit | 213368a9bd8e6633e9d8d76767ee369b2a748f31 (patch) | |
tree | 6ff2b64ca5a3a94dd1ff277a67b2765671bfd9ee /target/linux/adm8668/files/arch/mips | |
parent | de49325c0a6f425dee2e59af221fcd4951a3161e (diff) | |
download | upstream-213368a9bd8e6633e9d8d76767ee369b2a748f31.tar.gz upstream-213368a9bd8e6633e9d8d76767ee369b2a748f31.tar.bz2 upstream-213368a9bd8e6633e9d8d76767ee369b2a748f31.zip |
[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
Diffstat (limited to 'target/linux/adm8668/files/arch/mips')
-rw-r--r-- | target/linux/adm8668/files/arch/mips/adm8668/platform.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/adm8668/files/arch/mips/adm8668/platform.c b/target/linux/adm8668/files/arch/mips/adm8668/platform.c index dc4817f191..4c158dd749 100644 --- a/target/linux/adm8668/files/arch/mips/adm8668/platform.c +++ b/target/linux/adm8668/files/arch/mips/adm8668/platform.c @@ -77,12 +77,14 @@ static struct platform_device adm8668_eth1_device = { .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) { - platform_device_register(&adm8668_uart_device); - platform_device_register(&adm8668_eth0_device); - platform_device_register(&adm8668_eth1_device); - - return 0; + return platform_add_devices(adm8668_devs, ARRAY_SIZE(adm8668_devs)); } arch_initcall(adm8668_devs_register); |