diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/gpio.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/gpio.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c index 0fb8f8ac275a..44a0a886124d 100644 --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/drivers/net/wireless/ath/ath9k/gpio.c | |||
@@ -41,12 +41,14 @@ void ath_init_leds(struct ath_softc *sc) | |||
41 | { | 41 | { |
42 | int ret; | 42 | int ret; |
43 | 43 | ||
44 | if (AR_SREV_9287(sc->sc_ah)) | 44 | if (sc->sc_ah->led_pin < 0) { |
45 | sc->sc_ah->led_pin = ATH_LED_PIN_9287; | 45 | if (AR_SREV_9287(sc->sc_ah)) |
46 | else if (AR_SREV_9485(sc->sc_ah)) | 46 | sc->sc_ah->led_pin = ATH_LED_PIN_9287; |
47 | sc->sc_ah->led_pin = ATH_LED_PIN_9485; | 47 | else if (AR_SREV_9485(sc->sc_ah)) |
48 | else | 48 | sc->sc_ah->led_pin = ATH_LED_PIN_9485; |
49 | sc->sc_ah->led_pin = ATH_LED_PIN_DEF; | 49 | else |
50 | sc->sc_ah->led_pin = ATH_LED_PIN_DEF; | ||
51 | } | ||
50 | 52 | ||
51 | /* Configure gpio 1 for output */ | 53 | /* Configure gpio 1 for output */ |
52 | ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin, | 54 | ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin, |