diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2011-02-28 04:46:47 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-28 14:06:55 -0500 |
commit | 15178535ad2f8fd8f7e803791f25395aa69f80ac (patch) | |
tree | 956c2205bc3f4a1d5cc78742c401734c92ff29b0 /drivers | |
parent | 0cf55c21ec401632043db2b8acb7cd3bef64c9e6 (diff) |
ath9k: Fix incorrect GPIO LED pin for AR9485
AR9485 doesn't use the default GPIO pin for LED and GPIO 6 is actually
used for this.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/gpio.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 367b51430ff0..c718ab512a97 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -449,6 +449,7 @@ void ath9k_btcoex_timer_pause(struct ath_softc *sc); | |||
449 | 449 | ||
450 | #define ATH_LED_PIN_DEF 1 | 450 | #define ATH_LED_PIN_DEF 1 |
451 | #define ATH_LED_PIN_9287 8 | 451 | #define ATH_LED_PIN_9287 8 |
452 | #define ATH_LED_PIN_9485 6 | ||
452 | 453 | ||
453 | #ifdef CONFIG_MAC80211_LEDS | 454 | #ifdef CONFIG_MAC80211_LEDS |
454 | void ath_init_leds(struct ath_softc *sc); | 455 | void ath_init_leds(struct ath_softc *sc); |
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c index e369bf7e575f..0fb8f8ac275a 100644 --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/drivers/net/wireless/ath/ath9k/gpio.c | |||
@@ -43,6 +43,8 @@ void ath_init_leds(struct ath_softc *sc) | |||
43 | 43 | ||
44 | if (AR_SREV_9287(sc->sc_ah)) | 44 | if (AR_SREV_9287(sc->sc_ah)) |
45 | sc->sc_ah->led_pin = ATH_LED_PIN_9287; | 45 | sc->sc_ah->led_pin = ATH_LED_PIN_9287; |
46 | else if (AR_SREV_9485(sc->sc_ah)) | ||
47 | sc->sc_ah->led_pin = ATH_LED_PIN_9485; | ||
46 | else | 48 | else |
47 | sc->sc_ah->led_pin = ATH_LED_PIN_DEF; | 49 | sc->sc_ah->led_pin = ATH_LED_PIN_DEF; |
48 | 50 | ||