aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ani.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-04-23 00:58:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-26 14:21:18 -0400
commit51f139d567574e6a9b5c8aaddb8ff3a240cf8e52 (patch)
treedd27fd3d87ceda53867db18035d06d6b807fa196 /drivers/net/wireless/ath/ath9k/ani.c
parent7073daa63b8794710fa6c928a6dd169e52791185 (diff)
ath9k_hw: Remove pointless ANI deinit
There is no reason to disable the PHY Error / MIB counters when the module is being unloaded. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ani.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ani.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c
index cec62d311c78..ba8b20f01594 100644
--- a/drivers/net/wireless/ath/ath9k/ani.c
+++ b/drivers/net/wireless/ath/ath9k/ani.c
@@ -657,12 +657,3 @@ void ath9k_hw_ani_init(struct ath_hw *ah)
657 if (ah->config.enable_ani) 657 if (ah->config.enable_ani)
658 ah->proc_phyerr |= HAL_PROCESS_ANI; 658 ah->proc_phyerr |= HAL_PROCESS_ANI;
659} 659}
660
661void ath9k_hw_ani_disable(struct ath_hw *ah)
662{
663 ath_print(ath9k_hw_common(ah), ATH_DBG_ANI, "Disabling ANI\n");
664
665 ath9k_hw_disable_mib_counters(ah);
666 REG_WRITE(ah, AR_PHY_ERR_1, 0);
667 REG_WRITE(ah, AR_PHY_ERR_2, 0);
668}