mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 01:02:23 +02:00
[atheros] add missing CONFIG_GPIO_LEDS related ifdefs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10835 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
41696be697
commit
a426ecf827
@ -288,8 +288,10 @@ int __init ar5312_init_devices(void)
|
|||||||
|
|
||||||
ar5312_devs[dev++] = &ar5312_physmap_flash;
|
ar5312_devs[dev++] = &ar5312_physmap_flash;
|
||||||
|
|
||||||
|
#ifdef CONFIG_LEDS_GPIO
|
||||||
ar5312_leds[0].gpio = bcfg->sysLedGpio;
|
ar5312_leds[0].gpio = bcfg->sysLedGpio;
|
||||||
ar5312_devs[dev++] = &ar5312_gpio_leds;
|
ar5312_devs[dev++] = &ar5312_gpio_leds;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!memcmp(bcfg->enet0Mac, "\xff\xff\xff\xff\xff\xff", 6))
|
if (!memcmp(bcfg->enet0Mac, "\xff\xff\xff\xff\xff\xff", 6))
|
||||||
memcpy(bcfg->enet0Mac, bcfg->enet1Mac, 6);
|
memcpy(bcfg->enet0Mac, bcfg->enet1Mac, 6);
|
||||||
|
@ -241,12 +241,14 @@ int __init ar5315_init_devices(void)
|
|||||||
ar5315_eth_data.macaddr = bcfg->enet0Mac;
|
ar5315_eth_data.macaddr = bcfg->enet0Mac;
|
||||||
ar5315_wmac.dev.platform_data = config;
|
ar5315_wmac.dev.platform_data = config;
|
||||||
|
|
||||||
ar5315_leds[0].gpio = bcfg->sysLedGpio;
|
|
||||||
|
|
||||||
ar5315_devs[dev++] = &ar5315_eth;
|
ar5315_devs[dev++] = &ar5315_eth;
|
||||||
ar5315_devs[dev++] = &ar5315_wmac;
|
ar5315_devs[dev++] = &ar5315_wmac;
|
||||||
ar5315_devs[dev++] = &ar5315_spiflash;
|
ar5315_devs[dev++] = &ar5315_spiflash;
|
||||||
|
|
||||||
|
#ifdef CONFIG_LEDS_GPIO
|
||||||
|
ar5315_leds[0].gpio = bcfg->sysLedGpio;
|
||||||
ar5315_devs[dev++] = &ar5315_gpio_leds;
|
ar5315_devs[dev++] = &ar5315_gpio_leds;
|
||||||
|
#endif
|
||||||
|
|
||||||
return platform_add_devices(ar5315_devs, dev);
|
return platform_add_devices(ar5315_devs, dev);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user