diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath9k/pci.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath9k/pci.c b/drivers/net/wireless/ath9k/pci.c index 05612bf28360..c28afe42b269 100644 --- a/drivers/net/wireless/ath9k/pci.c +++ b/drivers/net/wireless/ath9k/pci.c | |||
@@ -16,9 +16,7 @@ | |||
16 | 16 | ||
17 | #include <linux/nl80211.h> | 17 | #include <linux/nl80211.h> |
18 | #include <linux/pci.h> | 18 | #include <linux/pci.h> |
19 | #include "core.h" | 19 | #include "ath9k.h" |
20 | #include "reg.h" | ||
21 | #include "hw.h" | ||
22 | 20 | ||
23 | static struct pci_device_id ath_pci_id_table[] __devinitdata = { | 21 | static struct pci_device_id ath_pci_id_table[] __devinitdata = { |
24 | { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */ | 22 | { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */ |
@@ -58,7 +56,7 @@ static void ath_pci_cleanup(struct ath_softc *sc) | |||
58 | pci_disable_device(pdev); | 56 | pci_disable_device(pdev); |
59 | } | 57 | } |
60 | 58 | ||
61 | static bool ath_pci_eeprom_read(struct ath_hal *ah, u32 off, u16 *data) | 59 | static bool ath_pci_eeprom_read(struct ath_hw *ah, u32 off, u16 *data) |
62 | { | 60 | { |
63 | (void)REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); | 61 | (void)REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); |
64 | 62 | ||
@@ -89,7 +87,7 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
89 | u8 csz; | 87 | u8 csz; |
90 | u32 val; | 88 | u32 val; |
91 | int ret = 0; | 89 | int ret = 0; |
92 | struct ath_hal *ah; | 90 | struct ath_hw *ah; |
93 | 91 | ||
94 | if (pci_enable_device(pdev)) | 92 | if (pci_enable_device(pdev)) |
95 | return -EIO; | 93 | return -EIO; |
@@ -192,10 +190,10 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
192 | "%s: Atheros AR%s MAC/BB Rev:%x " | 190 | "%s: Atheros AR%s MAC/BB Rev:%x " |
193 | "AR%s RF Rev:%x: mem=0x%lx, irq=%d\n", | 191 | "AR%s RF Rev:%x: mem=0x%lx, irq=%d\n", |
194 | wiphy_name(hw->wiphy), | 192 | wiphy_name(hw->wiphy), |
195 | ath_mac_bb_name(ah->ah_macVersion), | 193 | ath_mac_bb_name(ah->hw_version.macVersion), |
196 | ah->ah_macRev, | 194 | ah->hw_version.macRev, |
197 | ath_rf_name((ah->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR)), | 195 | ath_rf_name((ah->hw_version.analog5GhzRev & AR_RADIO_SREV_MAJOR)), |
198 | ah->ah_phyRev, | 196 | ah->hw_version.phyRev, |
199 | (unsigned long)mem, pdev->irq); | 197 | (unsigned long)mem, pdev->irq); |
200 | 198 | ||
201 | return 0; | 199 | return 0; |
@@ -230,7 +228,7 @@ static int ath_pci_suspend(struct pci_dev *pdev, pm_message_t state) | |||
230 | ath9k_hw_set_gpio(sc->sc_ah, ATH_LED_PIN, 1); | 228 | ath9k_hw_set_gpio(sc->sc_ah, ATH_LED_PIN, 1); |
231 | 229 | ||
232 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) | 230 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
233 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) | 231 | if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_RFSILENT) |
234 | cancel_delayed_work_sync(&sc->rf_kill.rfkill_poll); | 232 | cancel_delayed_work_sync(&sc->rf_kill.rfkill_poll); |
235 | #endif | 233 | #endif |
236 | 234 | ||
@@ -271,7 +269,7 @@ static int ath_pci_resume(struct pci_dev *pdev) | |||
271 | * check the h/w rfkill state on resume | 269 | * check the h/w rfkill state on resume |
272 | * and start the rfkill poll timer | 270 | * and start the rfkill poll timer |
273 | */ | 271 | */ |
274 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) | 272 | if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_RFSILENT) |
275 | queue_delayed_work(sc->hw->workqueue, | 273 | queue_delayed_work(sc->hw->workqueue, |
276 | &sc->rf_kill.rfkill_poll, 0); | 274 | &sc->rf_kill.rfkill_poll, 0); |
277 | #endif | 275 | #endif |