diff options
author | John Crispin <john@phrozen.org> | 2017-12-14 10:58:15 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-12-14 11:00:11 +0100 |
commit | 9f8d28285d569f28ad3db9b2cbb61814b2c90fdc (patch) | |
tree | 98dd656a6f773cec40d3d43c6d6d74e5367c2e4d /target/linux/ar71xx/files/arch | |
parent | d2e96d55ab071fddac46001d308ce834070bba2c (diff) | |
download | upstream-9f8d28285d569f28ad3db9b2cbb61814b2c90fdc.tar.gz upstream-9f8d28285d569f28ad3db9b2cbb61814b2c90fdc.tar.bz2 upstream-9f8d28285d569f28ad3db9b2cbb61814b2c90fdc.zip |
Revert "ar71xx: TL-WR1043N v4/v5: add orange WAN LED support"
This reverts commit 256990cbc0157feb8a9f37efeebf0330ab73727f.
this commit caused a compile error
"TL_WR1043_V5_GPIO_LED_WANORANGE" is undefined.
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v4.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v4.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v4.c index 2c55746154..450819a9e6 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v4.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v4.c @@ -49,8 +49,7 @@ #define TL_WR1043_V4_GPIO_USB_POWER 8 -#define TL_WR1043_V4_GPIO_LED_INET 15 -#define TL_WR1043_V4_GPIO_LED_WAN 16 +#define TL_WR1043_V4_GPIO_LED_WAN 15 #define TL_WR1043_V4_GPIO_LED_LAN1 9 #define TL_WR1043_V4_GPIO_LED_LAN2 14 #define TL_WR1043_V4_GPIO_LED_LAN3 21 @@ -64,7 +63,7 @@ #define TL_WR1043_V4_EEPROM_ADDR 0x1fff0000 #define TL_WR1043_V4_WMAC_CALDATA_OFFSET 0x1000 -#define TL_WR1043_V5_MAC_LOCATION 0x1ff00008 +#define TL_WR1043N_V5_MAC_LOCATION 0x1ff00008 static struct gpio_led tl_wr1043nd_v4_leds_gpio[] __initdata = { { @@ -89,11 +88,6 @@ static struct gpio_led tl_wr1043nd_v4_leds_gpio[] __initdata = { }, { .name = "tp-link:green:wan", - .gpio = TL_WR1043_V4_GPIO_LED_INET, - .active_low = 1, - }, - { - .name = "tp-link:orange:wan", .gpio = TL_WR1043_V4_GPIO_LED_WAN, .active_low = 1, }, @@ -216,20 +210,10 @@ static struct gpio_led tl_wr1043n_v5_leds_gpio[] __initdata = { }, { .name = "tp-link:green:wan", - .gpio = TL_WR1043_V4_GPIO_LED_INET, - .active_low = 1, - }, - { - .name = "tp-link:orange:wan", .gpio = TL_WR1043_V4_GPIO_LED_WAN, .active_low = 1, }, { - .name = "tp-link:orange:wan", - .gpio = TL_WR1043_V5_GPIO_LED_WANORANGE, - .active_low = 1, - }, - { .name = "tp-link:green:lan1", .gpio = TL_WR1043_V4_GPIO_LED_LAN1, .active_low = 1, @@ -256,7 +240,7 @@ static struct gpio_led tl_wr1043n_v5_leds_gpio[] __initdata = { static void __init tl_wr1043nv5_setup(void) { u8 *art = (u8 *) KSEG1ADDR(TL_WR1043_V4_EEPROM_ADDR); - u8 *mac = (u8 *) KSEG1ADDR(TL_WR1043_V5_MAC_LOCATION); + u8 *mac = (u8 *) KSEG1ADDR(TL_WR1043N_V5_MAC_LOCATION); ath79_register_m25p80(NULL); |