summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-11-04 22:08:54 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-11-04 22:08:54 +0000
commited35253f4c612499f6966dcd408a7583f1663a04 (patch)
tree27daeb5574d00d52ced904607836b5d21f59e78c /target/linux/ar71xx
parent1b744e1ca513c98958be9ce8867843b7d8911b35 (diff)
downloadmtk-20170518-ed35253f4c612499f6966dcd408a7583f1663a04.zip
mtk-20170518-ed35253f4c612499f6966dcd408a7583f1663a04.tar.gz
mtk-20170518-ed35253f4c612499f6966dcd408a7583f1663a04.tar.bz2
ar71xx: don't use the unknown LED on the ZCN-1523-5 board
According to #12421, GPIO 1 controls the power output on the unused lines of the LAN2 port. Remove the LED definition in order to prevent possible permanent hardware damage. If someone needs that, the power-out feature can be controlled via the GPIO sysfs interface. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34076
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-zcn-1523h.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-zcn-1523h.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-zcn-1523h.c
index 3a6fe21..bc79ab9 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-zcn-1523h.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-zcn-1523h.c
@@ -27,7 +27,7 @@
#define ZCN_1523H_2_GPIO_LED_MEDIUM 14
#define ZCN_1523H_2_GPIO_LED_STRONG 15
-#define ZCN_1523H_5_GPIO_LED_UNKNOWN 1
+#define ZCN_1523H_5_GPIO_LAN2_POWER 1
#define ZCN_1523H_5_GPIO_LED_LAN2 13
#define ZCN_1523H_5_GPIO_LED_WEAK 14
#define ZCN_1523H_5_GPIO_LED_MEDIUM 15
@@ -92,9 +92,6 @@ static struct gpio_led zcn_1523h_5_leds_gpio[] __initdata = {
.name = "zcn-1523h:green:lan2",
.gpio = ZCN_1523H_5_GPIO_LED_LAN2,
.active_low = 1,
- }, {
- .name = "zcn-1523h:amber:unknown",
- .gpio = ZCN_1523H_5_GPIO_LED_UNKNOWN,
}
};