Skip to content

Commit

Permalink
ath9k: do not register LEDs on AR913x
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Apr 16, 2012
1 parent 689e756 commit 7b27ba4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/ath9k/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b27ba4

Please sign in to comment.