From: Kyson Lok Date: Mon, 6 Aug 2018 09:05:33 +0000 (+0800) Subject: ar71xx: fix led default state for GL.iNet GL-USB150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b47fdc82cd3d6ef3a36d5c681b13c767ef7ea7a;p=thirdparty%2Fopenwrt.git ar71xx: fix led default state for GL.iNet GL-USB150 --- diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 1522474f069..babdc274787 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -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" ;; diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-usb150.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-usb150.c index 6cc27e1ada1..3b3ff661758 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-usb150.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-usb150.c @@ -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",