1 --- a/drivers/net/wireless/ath/ath9k/init.c
2 +++ b/drivers/net/wireless/ath/ath9k/init.c
3 @@ -538,8 +538,14 @@ static int ath9k_init_softc(u16 devid, s
4 ah->hw_version.subsysid = subsysid;
9 ah->ah_flags |= AH_USE_EEPROM;
10 + sc->sc_ah->led_pin = -1;
12 + sc->sc_ah->gpio_mask = pdata->gpio_mask;
13 + sc->sc_ah->gpio_val = pdata->gpio_val;
14 + sc->sc_ah->led_pin = pdata->led_pin;
17 common = ath9k_hw_common(ah);
18 common->ops = &ath9k_common_ops;
19 --- a/drivers/net/wireless/ath/ath9k/hw.h
20 +++ b/drivers/net/wireless/ath/ath9k/hw.h
21 @@ -794,7 +794,7 @@ struct ath_hw {
30 --- a/drivers/net/wireless/ath/ath9k/gpio.c
31 +++ b/drivers/net/wireless/ath/ath9k/gpio.c
32 @@ -139,10 +139,12 @@ void ath_init_leds(struct ath_softc *sc)
33 if (AR_SREV_9100(sc->sc_ah))
36 - if (AR_SREV_9287(sc->sc_ah))
37 - sc->sc_ah->led_pin = ATH_LED_PIN_9287;
39 - sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
40 + if (sc->sc_ah->led_pin < 0) {
41 + if (AR_SREV_9287(sc->sc_ah))
42 + sc->sc_ah->led_pin = ATH_LED_PIN_9287;
44 + sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
47 /* Configure gpio 1 for output */
48 ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin,
49 --- a/include/linux/ath9k_platform.h
50 +++ b/include/linux/ath9k_platform.h
52 struct ath9k_platform_data {
53 u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS];
61 #endif /* _LINUX_ATH9K_PLATFORM_H */