ar71xx: fix bi-color led on the TL-WR841N v1.5
authorGabor Juhos <juhosg@openwrt.org>
Fri, 25 Dec 2009 10:06:25 +0000 (10:06 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 25 Dec 2009 10:06:25 +0000 (10:06 +0000)
SVN-Revision: 18926

target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c

index 72d5acc4b82e5925962e385f38ea43ff75da80d8..d798070fde4e473259445aab0737cf149a4d1bd0 100644 (file)
@@ -21,8 +21,9 @@
 #include "dev-m25p80.h"
 #include "dev-ar913x-wmac.h"
 
-#define TL_WR841ND_V1_GPIO_LED_SYSTEM  2
-#define TL_WR841ND_V1_GPIO_LED_QSS     5
+#define TL_WR841ND_V1_GPIO_LED_SYSTEM          2
+#define TL_WR841ND_V1_GPIO_LED_QSS_GREEN       4
+#define TL_WR841ND_V1_GPIO_LED_QSS_RED         5
 
 #define TL_WR841ND_V1_GPIO_BTN_RESET   3
 #define TL_WR841ND_V1_GPIO_BTN_QSS     7
@@ -87,8 +88,10 @@ static struct gpio_led tl_wr841n_v1_leds_gpio[] __initdata = {
                .active_low     = 1,
        }, {
                .name           = "tl-wr841n:red:qss",
-               .gpio           = TL_WR841ND_V1_GPIO_LED_QSS,
-               .active_low     = 1,
+               .gpio           = TL_WR841ND_V1_GPIO_LED_QSS_RED,
+       }, {
+               .name           = "tl-wr841n:green:qss",
+               .gpio           = TL_WR841ND_V1_GPIO_LED_QSS_GREEN,
        }
 };