1 --- a/drivers/net/wireless/ath/ath9k/main.c
2 +++ b/drivers/net/wireless/ath/ath9k/main.c
6 #include <linux/nl80211.h>
7 +#include <linux/ath9k_platform.h>
11 --- a/drivers/net/wireless/ath/ath9k/init.c
12 +++ b/drivers/net/wireless/ath/ath9k/init.c
13 @@ -555,6 +555,7 @@ static int ath9k_init_softc(u16 devid, s
15 struct ath_hw *ah = NULL;
16 struct ath_common *common;
17 + struct ath9k_platform_data *pdata;
21 @@ -566,6 +567,10 @@ static int ath9k_init_softc(u16 devid, s
22 ah->hw_version.subsysid = subsysid;
25 + pdata = (struct ath9k_platform_data *) sc->dev->platform_data;
27 + ah->ah_flags |= AH_USE_EEPROM;
29 common = ath9k_hw_common(ah);
30 common->ops = &ath9k_common_ops;
31 common->bus_ops = bus_ops;
32 --- a/drivers/net/wireless/ath/ath9k/hw.c
33 +++ b/drivers/net/wireless/ath/ath9k/hw.c
34 @@ -417,10 +417,6 @@ static void ath9k_hw_init_defaults(struc
35 ah->hw_version.magic = AR5416_MAGIC;
36 ah->hw_version.subvendorid = 0;
39 - if (!AR_SREV_9100(ah))
40 - ah->ah_flags = AH_USE_EEPROM;
43 ah->sta_id1_defaults =
44 AR_STA_ID1_CRPT_MIC_ENABLE |