rendered paste bodyIndex: target/linux/atheros/files/arch/mips/atheros/ar5315/board.c===================================================================--- target/linux/atheros/files/arch/mips/atheros/ar5315/board.c (revision 10814)+++ target/linux/atheros/files/arch/mips/atheros/ar5315/board.c (working copy)@@ -92,7 +92,7 @@ .num_resources = ARRAY_SIZE(ar5315_spiflash_res) }; -#ifdef CONFIG_LEDS_GPIO+#if (defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)) static struct gpio_led ar5315_leds[] = { { .name = "wlan", .gpio = 0, .active_low = 1, }, };@@ -241,12 +241,14 @@ ar5315_eth_data.macaddr = bcfg->enet0Mac; ar5315_wmac.dev.platform_data = config; - ar5315_leds[0].gpio = bcfg->sysLedGpio;- ar5315_devs[dev++] = &ar5315_eth; ar5315_devs[dev++] = &ar5315_wmac; ar5315_devs[dev++] = &ar5315_spiflash;++#if (defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE))+ ar5315_leds[0].gpio = bcfg->sysLedGpio; ar5315_devs[dev++] = &ar5315_gpio_leds;+#endif return platform_add_devices(ar5315_devs, dev); }Index: target/linux/atheros/files/arch/mips/atheros/ar5312/board.c===================================================================--- target/linux/atheros/files/arch/mips/atheros/ar5312/board.c (revision 10814)+++ target/linux/atheros/files/arch/mips/atheros/ar5312/board.c (working copy)@@ -165,7 +165,7 @@ .resource = &ar5312_flash_resource, }; -#ifdef CONFIG_LEDS_GPIO+#if (defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)) static struct gpio_led ar5312_leds[] = { { .name = "wlan", .gpio = 0, .active_low = 1, }, };@@ -288,8 +288,10 @@ ar5312_devs[dev++] = &ar5312_physmap_flash; +#if (defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)) ar5312_leds[0].gpio = bcfg->sysLedGpio; ar5312_devs[dev++] = &ar5312_gpio_leds;+#endif if (!memcmp(bcfg->enet0Mac, "\xff\xff\xff\xff\xff\xff", 6)) memcpy(bcfg->enet0Mac, bcfg->enet1Mac, 6);