diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/pci.c b/drivers/net/wireless/ath/ath5k/pci.c index eaf79b49341e..dfa48eb7d953 100644 --- a/drivers/net/wireless/ath/ath5k/pci.c +++ b/drivers/net/wireless/ath/ath5k/pci.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/pci.h> | 18 | #include <linux/pci.h> |
19 | #include <linux/pci-aspm.h> | 19 | #include <linux/pci-aspm.h> |
20 | #include <linux/etherdevice.h> | 20 | #include <linux/etherdevice.h> |
21 | #include <linux/module.h> | ||
21 | #include "../ath.h" | 22 | #include "../ath.h" |
22 | #include "ath5k.h" | 23 | #include "ath5k.h" |
23 | #include "debug.h" | 24 | #include "debug.h" |
@@ -261,7 +262,7 @@ ath5k_pci_probe(struct pci_dev *pdev, | |||
261 | ah->iobase = mem; /* So we can unmap it on detach */ | 262 | ah->iobase = mem; /* So we can unmap it on detach */ |
262 | 263 | ||
263 | /* Initialize */ | 264 | /* Initialize */ |
264 | ret = ath5k_init_softc(ah, &ath_pci_bus_ops); | 265 | ret = ath5k_init_ah(ah, &ath_pci_bus_ops); |
265 | if (ret) | 266 | if (ret) |
266 | goto err_free; | 267 | goto err_free; |
267 | 268 | ||
@@ -287,7 +288,7 @@ ath5k_pci_remove(struct pci_dev *pdev) | |||
287 | struct ieee80211_hw *hw = pci_get_drvdata(pdev); | 288 | struct ieee80211_hw *hw = pci_get_drvdata(pdev); |
288 | struct ath5k_hw *ah = hw->priv; | 289 | struct ath5k_hw *ah = hw->priv; |
289 | 290 | ||
290 | ath5k_deinit_softc(ah); | 291 | ath5k_deinit_ah(ah); |
291 | pci_iounmap(pdev, ah->iobase); | 292 | pci_iounmap(pdev, ah->iobase); |
292 | pci_release_region(pdev, 0); | 293 | pci_release_region(pdev, 0); |
293 | pci_disable_device(pdev); | 294 | pci_disable_device(pdev); |