aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 7df728f36330..ba02ef2ab8a6 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -680,7 +680,8 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,
680 sc->sc_ah = ah; 680 sc->sc_ah = ah;
681 pCap = &ah->caps; 681 pCap = &ah->caps;
682 682
683 sc->dfs_detector = dfs_pattern_detector_init(ah, NL80211_DFS_UNSET); 683 common = ath9k_hw_common(ah);
684 sc->dfs_detector = dfs_pattern_detector_init(common, NL80211_DFS_UNSET);
684 685
685 if (!pdata) { 686 if (!pdata) {
686 ah->ah_flags |= AH_USE_EEPROM; 687 ah->ah_flags |= AH_USE_EEPROM;
@@ -694,7 +695,6 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,
694 ah->external_reset = pdata->external_reset; 695 ah->external_reset = pdata->external_reset;
695 } 696 }
696 697
697 common = ath9k_hw_common(ah);
698 common->ops = &ah->reg_ops; 698 common->ops = &ah->reg_ops;
699 common->bus_ops = bus_ops; 699 common->bus_ops = bus_ops;
700 common->ah = ah; 700 common->ah = ah;