Commit bb1f3ad9 authored by Pavel Roskin's avatar Pavel Roskin Committed by John W. Linville

ath5k: remove last references to "softc"

Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 931be260
...@@ -169,7 +169,7 @@ static int ath_ahb_probe(struct platform_device *pdev) ...@@ -169,7 +169,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
__set_bit(ATH_STAT_2G_DISABLED, ah->status); __set_bit(ATH_STAT_2G_DISABLED, ah->status);
} }
ret = ath5k_init_softc(ah, &ath_ahb_bus_ops); ret = ath5k_init_ah(ah, &ath_ahb_bus_ops);
if (ret != 0) { if (ret != 0) {
dev_err(&pdev->dev, "failed to attach device, err=%d\n", ret); dev_err(&pdev->dev, "failed to attach device, err=%d\n", ret);
ret = -ENODEV; ret = -ENODEV;
...@@ -214,7 +214,7 @@ static int ath_ahb_remove(struct platform_device *pdev) ...@@ -214,7 +214,7 @@ static int ath_ahb_remove(struct platform_device *pdev)
__raw_writel(reg, (void __iomem *) AR5K_AR5312_ENABLE); __raw_writel(reg, (void __iomem *) AR5K_AR5312_ENABLE);
} }
ath5k_deinit_softc(ah); ath5k_deinit_ah(ah);
platform_set_drvdata(pdev, NULL); platform_set_drvdata(pdev, NULL);
ieee80211_free_hw(hw); ieee80211_free_hw(hw);
......
...@@ -94,7 +94,7 @@ static int ath5k_hw_post(struct ath5k_hw *ah) ...@@ -94,7 +94,7 @@ static int ath5k_hw_post(struct ath5k_hw *ah)
/** /**
* ath5k_hw_init - Check if hw is supported and init the needed structs * ath5k_hw_init - Check if hw is supported and init the needed structs
* *
* @ah: The &struct ath5k_hw we got from the driver's init_softc function * @ah: The &struct ath5k_hw associated with the device
* *
* Check if the device is supported, perform a POST and initialize the needed * Check if the device is supported, perform a POST and initialize the needed
* structs. Returns -ENOMEM if we don't have memory for the needed structs, * structs. Returns -ENOMEM if we don't have memory for the needed structs,
......
...@@ -2338,7 +2338,7 @@ ath5k_tx_complete_poll_work(struct work_struct *work) ...@@ -2338,7 +2338,7 @@ ath5k_tx_complete_poll_work(struct work_struct *work)
\*************************/ \*************************/
int __devinit int __devinit
ath5k_init_softc(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops) ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops)
{ {
struct ieee80211_hw *hw = ah->hw; struct ieee80211_hw *hw = ah->hw;
struct ath_common *common; struct ath_common *common;
...@@ -2891,7 +2891,7 @@ ath5k_init(struct ieee80211_hw *hw) ...@@ -2891,7 +2891,7 @@ ath5k_init(struct ieee80211_hw *hw)
} }
void void
ath5k_deinit_softc(struct ath5k_hw *ah) ath5k_deinit_ah(struct ath5k_hw *ah)
{ {
struct ieee80211_hw *hw = ah->hw; struct ieee80211_hw *hw = ah->hw;
......
...@@ -107,8 +107,8 @@ void ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb, ...@@ -107,8 +107,8 @@ void ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb,
const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val); const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val);
int ath5k_init_softc(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops); int ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops);
void ath5k_deinit_softc(struct ath5k_hw *ah); void ath5k_deinit_ah(struct ath5k_hw *ah);
/* Check whether BSSID mask is supported */ /* Check whether BSSID mask is supported */
#define ath5k_hw_hasbssidmask(_ah) (ah->ah_version == AR5K_AR5212) #define ath5k_hw_hasbssidmask(_ah) (ah->ah_version == AR5K_AR5212)
......
...@@ -261,7 +261,7 @@ ath5k_pci_probe(struct pci_dev *pdev, ...@@ -261,7 +261,7 @@ ath5k_pci_probe(struct pci_dev *pdev,
ah->iobase = mem; /* So we can unmap it on detach */ ah->iobase = mem; /* So we can unmap it on detach */
/* Initialize */ /* Initialize */
ret = ath5k_init_softc(ah, &ath_pci_bus_ops); ret = ath5k_init_ah(ah, &ath_pci_bus_ops);
if (ret) if (ret)
goto err_free; goto err_free;
...@@ -287,7 +287,7 @@ ath5k_pci_remove(struct pci_dev *pdev) ...@@ -287,7 +287,7 @@ ath5k_pci_remove(struct pci_dev *pdev)
struct ieee80211_hw *hw = pci_get_drvdata(pdev); struct ieee80211_hw *hw = pci_get_drvdata(pdev);
struct ath5k_hw *ah = hw->priv; struct ath5k_hw *ah = hw->priv;
ath5k_deinit_softc(ah); ath5k_deinit_ah(ah);
pci_iounmap(pdev, ah->iobase); pci_iounmap(pdev, ah->iobase);
pci_release_region(pdev, 0); pci_release_region(pdev, 0);
pci_disable_device(pdev); pci_disable_device(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment