ar71xx: rbspi: fix RB wAP AC gpio conflict and LED
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-rbspi.c
index f14b078b2c9b83ed9385afffa0e0202d12fde25d..ad67c6e8690eadf52a3c6aa976ae36148234f7b6 100644 (file)
@@ -478,10 +478,10 @@ static struct gpio_led rblhg_leds[] __initdata = {
 };
 
 /* RB w APG-5HacT2HnD (wAP AC) gpios*/
-#define RBWAPGSC_LED1          1
-#define RBWAPGSC_LED2          8
-#define RBWAPGSC_LED3          9
-#define RBWAPGSC_POWERLED              16
+#define RBWAPGSC_WIFI_LED_1            1
+#define RBWAPGSC_WIFI_LED_2            8
+#define RBWAPGSC_WIFI_LED_3            9
+#define RBWAPGSC_GPIO_LED_POWER                16
 #define RBWAPGSC_GPIO_BTN_RESET                1
 #define RBWAPGSC_GPIO_MDIO_MDC         12
 #define RBWAPGSC_GPIO_MDIO_DATA                11
@@ -489,13 +489,10 @@ static struct gpio_led rblhg_leds[] __initdata = {
 
 static struct gpio_led rbwapgsc_leds[] __initdata = {
        {
-               .name = "rb:green:led1",
-               .gpio = RBWAPGSC_LED1,
-               .active_low = 1,
-       },{
-               .name = "rb:blue:power",
-               .gpio = RBWAPGSC_POWERLED,
+               .name = "rb:green:power",
+               .gpio = RBWAPGSC_GPIO_LED_POWER,
                .active_low = 1,
+               .default_state = LEDS_GPIO_DEFSTATE_ON,
        },
 };