aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/ahb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath9k/ahb.c')
-rw-r--r--drivers/net/wireless/ath9k/ahb.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath9k/ahb.c b/drivers/net/wireless/ath9k/ahb.c
index 7f2c3a09bcac..391c9fd3b646 100644
--- a/drivers/net/wireless/ath9k/ahb.c
+++ b/drivers/net/wireless/ath9k/ahb.c
@@ -19,9 +19,7 @@
19#include <linux/nl80211.h> 19#include <linux/nl80211.h>
20#include <linux/platform_device.h> 20#include <linux/platform_device.h>
21#include <linux/ath9k_platform.h> 21#include <linux/ath9k_platform.h>
22#include "core.h" 22#include "ath9k.h"
23#include "reg.h"
24#include "hw.h"
25 23
26/* return bus cachesize in 4B word units */ 24/* return bus cachesize in 4B word units */
27static void ath_ahb_read_cachesize(struct ath_softc *sc, int *csz) 25static void ath_ahb_read_cachesize(struct ath_softc *sc, int *csz)
@@ -34,7 +32,7 @@ static void ath_ahb_cleanup(struct ath_softc *sc)
34 iounmap(sc->mem); 32 iounmap(sc->mem);
35} 33}
36 34
37static bool ath_ahb_eeprom_read(struct ath_hal *ah, u32 off, u16 *data) 35static bool ath_ahb_eeprom_read(struct ath_hw *ah, u32 off, u16 *data)
38{ 36{
39 struct ath_softc *sc = ah->ah_sc; 37 struct ath_softc *sc = ah->ah_sc;
40 struct platform_device *pdev = to_platform_device(sc->dev); 38 struct platform_device *pdev = to_platform_device(sc->dev);
@@ -67,7 +65,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
67 struct resource *res; 65 struct resource *res;
68 int irq; 66 int irq;
69 int ret = 0; 67 int ret = 0;
70 struct ath_hal *ah; 68 struct ath_hw *ah;
71 69
72 if (!pdev->dev.platform_data) { 70 if (!pdev->dev.platform_data) {
73 dev_err(&pdev->dev, "no platform data specified\n"); 71 dev_err(&pdev->dev, "no platform data specified\n");
@@ -134,10 +132,10 @@ static int ath_ahb_probe(struct platform_device *pdev)
134 "%s: Atheros AR%s MAC/BB Rev:%x, " 132 "%s: Atheros AR%s MAC/BB Rev:%x, "
135 "AR%s RF Rev:%x, mem=0x%lx, irq=%d\n", 133 "AR%s RF Rev:%x, mem=0x%lx, irq=%d\n",
136 wiphy_name(hw->wiphy), 134 wiphy_name(hw->wiphy),
137 ath_mac_bb_name(ah->ah_macVersion), 135 ath_mac_bb_name(ah->hw_version.macVersion),
138 ah->ah_macRev, 136 ah->hw_version.macRev,
139 ath_rf_name((ah->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR)), 137 ath_rf_name((ah->hw_version.analog5GhzRev & AR_RADIO_SREV_MAJOR)),
140 ah->ah_phyRev, 138 ah->hw_version.phyRev,
141 (unsigned long)mem, irq); 139 (unsigned long)mem, irq);
142 140
143 return 0; 141 return 0;