diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-08-03 15:24:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:26 -0400 |
commit | ed459c18517881890193b3414a25dbfe83d2ae7f (patch) | |
tree | dbdb1b60532b251d4c5835d56643edc8508d948f | |
parent | 8dadadb7e977a91b46ed3549f9d2f22a629e5043 (diff) |
ath9k: remove usage of AR_SREV_*() wrapper to detect supported hw
We will clean this up next to just use a switch.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 7a0a6aed6324..e0bc4c580446 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -665,8 +665,10 @@ static struct ath_hw *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc, | |||
665 | if ((ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCI) && | 665 | if ((ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCI) && |
666 | (ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCIE) && | 666 | (ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCIE) && |
667 | (ah->hw_version.macVersion != AR_SREV_VERSION_9160) && | 667 | (ah->hw_version.macVersion != AR_SREV_VERSION_9160) && |
668 | (!AR_SREV_9100(ah)) && (!AR_SREV_9280(ah)) && | 668 | (ah->hw_version.macVersion != AR_SREV_VERSION_9100) && |
669 | (!AR_SREV_9285(ah)) && (!AR_SREV_9287(ah))) { | 669 | (ah->hw_version.macVersion != AR_SREV_VERSION_9280) && |
670 | (ah->hw_version.macVersion != AR_SREV_VERSION_9285) && | ||
671 | (ah->hw_version.macVersion != AR_SREV_VERSION_9287)) { | ||
670 | DPRINTF(sc, ATH_DBG_FATAL, | 672 | DPRINTF(sc, ATH_DBG_FATAL, |
671 | "Mac Chip Rev 0x%02x.%x is not supported by " | 673 | "Mac Chip Rev 0x%02x.%x is not supported by " |
672 | "this driver\n", ah->hw_version.macVersion, | 674 | "this driver\n", ah->hw_version.macVersion, |