diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-04-12 22:35:57 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-16 14:19:28 -0400 |
commit | 7b27ba4e9c8053ca73e2b21ece804f7e80c07ba3 (patch) | |
tree | 8f324740d27f2c5a980721755f779be6287ff9ec /drivers/net/wireless/ath | |
parent | 689e756fad5b89d25bb47d40a0e08e3aba79510f (diff) | |
download | blackbird-op-linux-7b27ba4e9c8053ca73e2b21ece804f7e80c07ba3.tar.gz blackbird-op-linux-7b27ba4e9c8053ca73e2b21ece804f7e80c07ba3.zip |
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>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/gpio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c index fbe23de1297f..dd10f4ac03ef 100644 --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/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; |