diff options
author | Mathias Kresin <dev@kresin.me> | 2017-03-22 21:59:49 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-04-08 14:30:00 +0200 |
commit | 1f5ea4eae46e46a87353a751637ccb5d5cd5f60b (patch) | |
tree | b3d2a1ae16ecbd743491f5665e0b9218728d74f3 /target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c | |
parent | b06559e5b76adfbafb16965098994cd30e8ded9c (diff) | |
download | upstream-1f5ea4eae46e46a87353a751637ccb5d5cd5f60b.tar.gz upstream-1f5ea4eae46e46a87353a751637ccb5d5cd5f60b.tar.bz2 upstream-1f5ea4eae46e46a87353a751637ccb5d5cd5f60b.zip |
ar71xx: add correct named default wireless led by using platform leds
Instead of renaming the default wireless led attached to the wireless
chip, add a new led using the platform leds with the phy0tpt trigger
set in userspace.
When switching ar71xx to device tree, the same can be done by using the
build in GPIO controller and without adding new bindings.
Drop the now unused platform code.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c index 258d254cf4..54217220f7 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c @@ -109,8 +109,6 @@ static struct gpio_led wnr2200_leds_gpio[] __initdata = { } }; -static const char *wnr2200_wmac_led_name = "netgear:blue:wlan"; - static struct gpio_led wnr2200_wmac_leds_gpio[] = { { .name = "netgear:amber:test", @@ -121,6 +119,10 @@ static struct gpio_led wnr2200_wmac_leds_gpio[] = { .gpio = WNR2200_GPIO_WMAC_LED_POWER_GREEN, .active_low = 1, .default_state = LEDS_GPIO_DEFSTATE_ON, + }, { + .name = "netgear:blue:wlan", + .gpio = WNR2200_GPIO_WMAC_LED_WLAN_BLUE, + .active_low = 1, } }; @@ -225,9 +227,6 @@ static void __init wnr2200_setup(void) ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio), wnr2200_leds_gpio); - ap9x_pci_setup_wmac_led_pin(0, WNR2200_GPIO_WMAC_LED_WLAN_BLUE); - ap9x_pci_setup_wmac_led_name(0, wnr2200_wmac_led_name); - ap9x_pci_setup_wmac_leds(0, wnr2200_wmac_leds_gpio, ARRAY_SIZE(wnr2200_wmac_leds_gpio)); |