aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-04-12 08:45:19 +0200
committerMathias Kresin <dev@kresin.me>2017-04-13 08:18:57 +0200
commite20965811db65eab98adbd0b73c64f94325dfa23 (patch)
tree7c5396738a7f61bb662683df6c267e926834034b /target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
parentae0facdf1da51bf55942d9f59ee400bf77ee431f (diff)
downloadupstream-e20965811db65eab98adbd0b73c64f94325dfa23.tar.gz
upstream-e20965811db65eab98adbd0b73c64f94325dfa23.tar.bz2
upstream-e20965811db65eab98adbd0b73c64f94325dfa23.zip
ar71xx: fix ath9k default LED changes fallout
Since 192f0a3db859 ("ath9k: unset the default LED pin if used by platform leds") the default ath9k wireless LED is not set as soon as any pin of the ath ath9k gpio controller is used. All touched boards have leds defined which are using the gpio pins exposed by the ath9k driver but rely on a default set wireless led trigger. Add the wireless leds were missing and setup the wireless phy trigger in userspace. Signed-off-by: Russell Senior <russell@personaltelco.net> Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
index 53f37b0981..5d235c49f4 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
@@ -84,6 +84,11 @@ static struct gpio_led wzrhpg450h_wmac_leds_gpio[] = {
.gpio = 14,
.active_low = 1,
},
+ {
+ .name = "buffalo:green:wireless",
+ .gpio = 15,
+ .active_low = 1,
+ },
};
static struct gpio_keys_button wzrhpg450h_gpio_keys[] __initdata = {
@@ -156,7 +161,6 @@ static void __init wzrhpg450h_init(void)
ap91_pci_init(ee, NULL);
ap9x_pci_get_wmac_data(0)->tx_gain_buffalo = true;
ap9x_pci_get_wmac_data(1)->tx_gain_buffalo = true;
- ap9x_pci_setup_wmac_led_pin(0, 15);
ap9x_pci_setup_wmac_leds(0, wzrhpg450h_wmac_leds_gpio,
ARRAY_SIZE(wzrhpg450h_wmac_leds_gpio));
}