ath9k: ignore led_pin if ath9k GPIO controller is used with DT
[openwrt/staging/chunkeey.git] / package / kernel / mac80211 / patches / 549-ath9k_enable_gpio_buttons.patch
index 1d1efe5384af3d867faa4f2132d4fdc14a0f0ed0..4e165dde99938d3436b6497b8c2b08491c74f601 100644 (file)
@@ -117,8 +117,8 @@ 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
-@@ -299,6 +368,7 @@ void ath_init_leds(struct ath_softc *sc)
-               ath9k_register_gpio_chip(sc);
+@@ -301,6 +370,7 @@ void ath_init_leds(struct ath_softc *sc)
+       }
  
        ath_fill_led_pin(sc);
 +      ath9k_init_buttons(sc);