Changeset 34545


Ignore:
Timestamp:
2012-12-06T23:39:22+01:00 (5 years ago)
Author:
florian
Message:

[adm8668] use platform_add_devices

Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm8668/files/arch/mips/adm8668/platform.c

    r34544 r34545  
    7878}; 
    7979 
     80static struct platform_device *adm8668_devs[] = { 
     81        &adm8668_uart_device, 
     82        &adm8668_eth0_device, 
     83        &adm8668_eth1_device, 
     84}; 
     85 
    8086int __devinit adm8668_devs_register(void) 
    8187{ 
    82         platform_device_register(&adm8668_uart_device); 
    83         platform_device_register(&adm8668_eth0_device); 
    84         platform_device_register(&adm8668_eth1_device); 
    85  
    86         return 0; 
     88        return platform_add_devices(adm8668_devs, ARRAY_SIZE(adm8668_devs)); 
    8789} 
    8890arch_initcall(adm8668_devs_register); 
Note: See TracChangeset for help on using the changeset viewer.