浏览代码

ath9k: do not register LEDs on AR913x

LED support is typically handled via system GPIO on these platforms.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Felix Fietkau 13 年之前
父节点
当前提交
7b27ba4e9c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/net/wireless/ath/ath9k/gpio.c

+ 3 - 0
drivers/net/wireless/ath/ath9k/gpio.c

@@ -41,6 +41,9 @@ void ath_init_leds(struct ath_softc *sc)
 {
 	int ret;
 
+	if (AR_SREV_9100(sc->sc_ah))
+		return;
+
 	if (sc->sc_ah->led_pin < 0) {
 		if (AR_SREV_9287(sc->sc_ah))
 			sc->sc_ah->led_pin = ATH_LED_PIN_9287;