aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2011-07-26 22:27:05 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-08 16:04:14 -0400
commitbb1f3ad96946f25653665c91afed17c8dd5b45ac (patch)
tree02553db1c8e3683fc18aa485d609a7fb4fd7c9d3
parent931be260ed54843edac37cb3ff09a40b86114b31 (diff)
ath5k: remove last references to "softc"
Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/ahb.c4
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c4
-rw-r--r--drivers/net/wireless/ath/ath5k/base.h4
-rw-r--r--drivers/net/wireless/ath/ath5k/pci.c4
5 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c
index a2a167363dbf..e5be7e701816 100644
--- a/drivers/net/wireless/ath/ath5k/ahb.c
+++ b/drivers/net/wireless/ath/ath5k/ahb.c
@@ -169,7 +169,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
169 __set_bit(ATH_STAT_2G_DISABLED, ah->status); 169 __set_bit(ATH_STAT_2G_DISABLED, ah->status);
170 } 170 }
171 171
172 ret = ath5k_init_softc(ah, &ath_ahb_bus_ops); 172 ret = ath5k_init_ah(ah, &ath_ahb_bus_ops);
173 if (ret != 0) { 173 if (ret != 0) {
174 dev_err(&pdev->dev, "failed to attach device, err=%d\n", ret); 174 dev_err(&pdev->dev, "failed to attach device, err=%d\n", ret);
175 ret = -ENODEV; 175 ret = -ENODEV;
@@ -214,7 +214,7 @@ static int ath_ahb_remove(struct platform_device *pdev)
214 __raw_writel(reg, (void __iomem *) AR5K_AR5312_ENABLE); 214 __raw_writel(reg, (void __iomem *) AR5K_AR5312_ENABLE);
215 } 215 }
216 216
217 ath5k_deinit_softc(ah); 217 ath5k_deinit_ah(ah);
218 platform_set_drvdata(pdev, NULL); 218 platform_set_drvdata(pdev, NULL);
219 ieee80211_free_hw(hw); 219 ieee80211_free_hw(hw);
220 220
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c
index 96627ed6d57a..91627dd2c26a 100644
--- a/drivers/net/wireless/ath/ath5k/attach.c
+++ b/drivers/net/wireless/ath/ath5k/attach.c
@@ -94,7 +94,7 @@ static int ath5k_hw_post(struct ath5k_hw *ah)
94/** 94/**
95 * ath5k_hw_init - Check if hw is supported and init the needed structs 95 * ath5k_hw_init - Check if hw is supported and init the needed structs
96 * 96 *
97 * @ah: The &struct ath5k_hw we got from the driver's init_softc function 97 * @ah: The &struct ath5k_hw associated with the device
98 * 98 *
99 * Check if the device is supported, perform a POST and initialize the needed 99 * Check if the device is supported, perform a POST and initialize the needed
100 * structs. Returns -ENOMEM if we don't have memory for the needed structs, 100 * structs. Returns -ENOMEM if we don't have memory for the needed structs,
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index e5adad4bc522..108d55a06965 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2338,7 +2338,7 @@ ath5k_tx_complete_poll_work(struct work_struct *work)
2338\*************************/ 2338\*************************/
2339 2339
2340int __devinit 2340int __devinit
2341ath5k_init_softc(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops) 2341ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops)
2342{ 2342{
2343 struct ieee80211_hw *hw = ah->hw; 2343 struct ieee80211_hw *hw = ah->hw;
2344 struct ath_common *common; 2344 struct ath_common *common;
@@ -2891,7 +2891,7 @@ err:
2891} 2891}
2892 2892
2893void 2893void
2894ath5k_deinit_softc(struct ath5k_hw *ah) 2894ath5k_deinit_ah(struct ath5k_hw *ah)
2895{ 2895{
2896 struct ieee80211_hw *hw = ah->hw; 2896 struct ieee80211_hw *hw = ah->hw;
2897 2897
diff --git a/drivers/net/wireless/ath/ath5k/base.h b/drivers/net/wireless/ath/ath5k/base.h
index 3952cc8dc4f7..6c94c7ff2350 100644
--- a/drivers/net/wireless/ath/ath5k/base.h
+++ b/drivers/net/wireless/ath/ath5k/base.h
@@ -107,8 +107,8 @@ void ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb,
107 107
108const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val); 108const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val);
109 109
110int ath5k_init_softc(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops); 110int ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops);
111void ath5k_deinit_softc(struct ath5k_hw *ah); 111void ath5k_deinit_ah(struct ath5k_hw *ah);
112 112
113/* Check whether BSSID mask is supported */ 113/* Check whether BSSID mask is supported */
114#define ath5k_hw_hasbssidmask(_ah) (ah->ah_version == AR5K_AR5212) 114#define ath5k_hw_hasbssidmask(_ah) (ah->ah_version == AR5K_AR5212)
diff --git a/drivers/net/wireless/ath/ath5k/pci.c b/drivers/net/wireless/ath/ath5k/pci.c
index eaf79b49341e..c1dff2ced044 100644
--- a/drivers/net/wireless/ath/ath5k/pci.c
+++ b/drivers/net/wireless/ath/ath5k/pci.c
@@ -261,7 +261,7 @@ ath5k_pci_probe(struct pci_dev *pdev,
261 ah->iobase = mem; /* So we can unmap it on detach */ 261 ah->iobase = mem; /* So we can unmap it on detach */
262 262
263 /* Initialize */ 263 /* Initialize */
264 ret = ath5k_init_softc(ah, &ath_pci_bus_ops); 264 ret = ath5k_init_ah(ah, &ath_pci_bus_ops);
265 if (ret) 265 if (ret)
266 goto err_free; 266 goto err_free;
267 267
@@ -287,7 +287,7 @@ ath5k_pci_remove(struct pci_dev *pdev)
287 struct ieee80211_hw *hw = pci_get_drvdata(pdev); 287 struct ieee80211_hw *hw = pci_get_drvdata(pdev);
288 struct ath5k_hw *ah = hw->priv; 288 struct ath5k_hw *ah = hw->priv;
289 289
290 ath5k_deinit_softc(ah); 290 ath5k_deinit_ah(ah);
291 pci_iounmap(pdev, ah->iobase); 291 pci_iounmap(pdev, ah->iobase);
292 pci_release_region(pdev, 0); 292 pci_release_region(pdev, 0);
293 pci_disable_device(pdev); 293 pci_disable_device(pdev);