diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-12-11 18:51:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-13 15:23:31 -0500 |
commit | 6da5a720bab3866ba23a37841f6a61d96e498a3f (patch) | |
tree | 3307786efb42fde60c3fc81da13e59752cf34038 /drivers/net/wireless/ath/ath9k/ar9002_hw.c | |
parent | df3c8b2b10b47429d2f3fe79d00daa38a3381aad (diff) |
ath9k_hw: clean up SREV version checks
There's no need to have separate callbacks for pre-AR9003 vs AR9003
SREV version checks, so just merge those into one function.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9002_hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9002_hw.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_hw.c b/drivers/net/wireless/ath/ath9k/ar9002_hw.c index 7d5cb204f93..fdb5a835fdc 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_hw.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_hw.c | |||
@@ -26,24 +26,6 @@ MODULE_PARM_DESC(nohwcrypt, "Force new ANI for AR5008, AR9001, AR9002"); | |||
26 | 26 | ||
27 | /* General hardware code for the A5008/AR9001/AR9002 hadware families */ | 27 | /* General hardware code for the A5008/AR9001/AR9002 hadware families */ |
28 | 28 | ||
29 | static bool ar9002_hw_macversion_supported(u32 macversion) | ||
30 | { | ||
31 | switch (macversion) { | ||
32 | case AR_SREV_VERSION_5416_PCI: | ||
33 | case AR_SREV_VERSION_5416_PCIE: | ||
34 | case AR_SREV_VERSION_9160: | ||
35 | case AR_SREV_VERSION_9100: | ||
36 | case AR_SREV_VERSION_9280: | ||
37 | case AR_SREV_VERSION_9285: | ||
38 | case AR_SREV_VERSION_9287: | ||
39 | case AR_SREV_VERSION_9271: | ||
40 | return true; | ||
41 | default: | ||
42 | break; | ||
43 | } | ||
44 | return false; | ||
45 | } | ||
46 | |||
47 | static void ar9002_hw_init_mode_regs(struct ath_hw *ah) | 29 | static void ar9002_hw_init_mode_regs(struct ath_hw *ah) |
48 | { | 30 | { |
49 | if (AR_SREV_9271(ah)) { | 31 | if (AR_SREV_9271(ah)) { |
@@ -565,7 +547,6 @@ void ar9002_hw_attach_ops(struct ath_hw *ah) | |||
565 | 547 | ||
566 | priv_ops->init_mode_regs = ar9002_hw_init_mode_regs; | 548 | priv_ops->init_mode_regs = ar9002_hw_init_mode_regs; |
567 | priv_ops->init_mode_gain_regs = ar9002_hw_init_mode_gain_regs; | 549 | priv_ops->init_mode_gain_regs = ar9002_hw_init_mode_gain_regs; |
568 | priv_ops->macversion_supported = ar9002_hw_macversion_supported; | ||
569 | 550 | ||
570 | ops->config_pci_powersave = ar9002_hw_configpcipowersave; | 551 | ops->config_pci_powersave = ar9002_hw_configpcipowersave; |
571 | 552 | ||