From 4a4b0b82ec4d5aae5306988819c31afda9e8ca96 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 17 Dec 2015 09:27:18 +0000 Subject: ath9k: Pass LED polarity to ath_create_gpio_led when initializing the LEDs. Signed-off-by: Vittorio Gambaletta SVN-Revision: 47909 --- package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch') diff --git a/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch b/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch index dc33cd029b..7c10ea6b0d 100644 --- a/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch +++ b/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch @@ -59,7 +59,7 @@ @@ -120,6 +141,12 @@ void ath_init_leds(struct ath_softc *sc) trigger = ieee80211_get_radio_led_name(sc->hw); - ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger, 1); + ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger, !sc->sc_ah->config.led_active_high); + + if (!pdata) + return; -- cgit v1.2.3