]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ar71xx: fix led default state for GL.iNet GL-USB150
authorKyson Lok <kysonlok@gmail.com>
Mon, 6 Aug 2018 09:05:33 +0000 (17:05 +0800)
committerKyson Lok <kysonlok@gmail.com>
Mon, 6 Aug 2018 09:06:36 +0000 (17:06 +0800)
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/files/arch/mips/ath79/mach-gl-usb150.c

index 1522474f069b4ed1b3bbbf1bb495679de737abad..babdc27478740da31107139f8bb1df9378f85b7c 100755 (executable)
@@ -89,7 +89,6 @@ e600gac-v2)
        esac
        ;;
 ap531b0|\
-gl-usb150|\
 sc1750|\
 sc450)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
@@ -390,6 +389,10 @@ fritz450e)
        ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
        ;;
+gl-usb150)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+       ucidef_set_led_default "power" "POWER" "$board:green:power" "1"
+       ;;
 gl-ar300m)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
        ;;
index 6cc27e1ada15c733589f04317623e7b0c0fcff85..3b3ff661758fa0e880e946efcb0377bb400ed946 100644 (file)
@@ -37,6 +37,7 @@ static struct gpio_led gl_usb150_leds_gpio[] __initdata = {
        {
                .name           = "gl-usb150:green:power",
                .gpio           = GL_USB150_GPIO_LED_POWER,
+               .default_state  = LEDS_GPIO_DEFSTATE_KEEP,
                .active_low     = 0,
        }, {
                .name           = "gl-usb150:green:wlan",