1 --- a/include/linux/ath9k_platform.h
2 +++ b/include/linux/ath9k_platform.h
5 struct ath9k_platform_data {
6 u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS];
10 #endif /* _LINUX_ATH9K_PLATFORM_H */
11 --- a/drivers/net/wireless/ath/ath9k/init.c
12 +++ b/drivers/net/wireless/ath/ath9k/init.c
15 #include <linux/slab.h>
16 #include <linux/pm_qos_params.h>
17 +#include <linux/ath9k_platform.h>
21 @@ -520,6 +521,7 @@ static void ath9k_init_misc(struct ath_s
22 static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
23 const struct ath_bus_ops *bus_ops)
25 + struct ath9k_platform_data *pdata = sc->dev->platform_data;
26 struct ath_hw *ah = NULL;
27 struct ath_common *common;
29 @@ -565,6 +567,9 @@ static int ath9k_init_softc(u16 devid, s
33 + if (pdata && pdata->macaddr)
34 + memcpy(common->macaddr, pdata->macaddr, ETH_ALEN);
36 ret = ath9k_init_debug(ah);
38 ath_print(common, ATH_DBG_FATAL,