aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-03-22 07:29:32 +0100
committerMathias Kresin <dev@kresin.me>2017-04-08 14:30:00 +0200
commit20b45df7ebcd18802d56f51893d40af43b687cb3 (patch)
tree62876dc11329575e1f2ecc2caafb65334bad366b /package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch
parent192f0a3db8598fc6faa47788d0152bda54c5109a (diff)
downloadupstream-20b45df7ebcd18802d56f51893d40af43b687cb3.tar.gz
upstream-20b45df7ebcd18802d56f51893d40af43b687cb3.tar.bz2
upstream-20b45df7ebcd18802d56f51893d40af43b687cb3.zip
ath9k: enable GPIO chip only if requested via DT
In case that the atheros device tree binding is used, enable access to the GPIO chip only if the gpio-controller device tree parameter is used for the ath9k node. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch')
-rw-r--r--package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch b/package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch
index 8aefcf4d07..1d1efe5384 100644
--- a/package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch
+++ b/package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch
@@ -117,10 +117,10 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
while (!list_empty(&sc->leds)) {
led = list_first_entry(&sc->leds, struct ath_led, list);
#ifdef CONFIG_GPIOLIB
-@@ -293,6 +362,7 @@ void ath_init_leds(struct ath_softc *sc)
- ath_fill_led_pin(sc);
+@@ -299,6 +368,7 @@ void ath_init_leds(struct ath_softc *sc)
+ ath9k_register_gpio_chip(sc);
- ath9k_register_gpio_chip(sc);
+ ath_fill_led_pin(sc);
+ ath9k_init_buttons(sc);
if (pdata && pdata->leds && pdata->num_leds)