diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-13 10:42:35 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-14 18:28:24 +0100 |
commit | a46d1fde4b5eb24e2d744230fdb307bbf821cdd7 (patch) | |
tree | 00441e22f0e1827ef7bc05894ad943e0346aaea3 /package/kernel/mac80211/patches/530-ath9k_extra_leds.patch | |
parent | adf2fef5e8665e534d4895308d9e3325df7716ba (diff) | |
download | mtk-20170518-a46d1fde4b5eb24e2d744230fdb307bbf821cdd7.zip mtk-20170518-a46d1fde4b5eb24e2d744230fdb307bbf821cdd7.tar.gz mtk-20170518-a46d1fde4b5eb24e2d744230fdb307bbf821cdd7.tar.bz2 |
mac80211: refresh patches
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/530-ath9k_extra_leds.patch')
-rw-r--r-- | package/kernel/mac80211/patches/530-ath9k_extra_leds.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch b/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch index 3fbe316..cb58f95 100644 --- a/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch +++ b/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch @@ -103,8 +103,7 @@ + GFP_KERNEL); + if (!led) + return -ENOMEM; - -- ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); ++ + led->gpio = gpio = (struct gpio_led *) (led + 1); + _name = (char *) (led->gpio + 1); + @@ -117,7 +116,8 @@ + ret = ath_add_led(sc, led); + if (unlikely(ret < 0)) + kfree(led); -+ + +- ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); + return ret; } @@ -125,11 +125,11 @@ { - if (!sc->led_registered) - return; -- -- ath_led_brightness(&sc->led_cdev, LED_OFF); -- led_classdev_unregister(&sc->led_cdev); + struct ath_led *led; +- ath_led_brightness(&sc->led_cdev, LED_OFF); +- led_classdev_unregister(&sc->led_cdev); +- - ath9k_hw_gpio_free(sc->sc_ah, sc->sc_ah->led_pin); + while (!list_empty(&sc->leds)) { + led = list_first_entry(&sc->leds, struct ath_led, list); |