diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-01-21 08:54:13 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:08 -0500 |
commit | 369391db1aabd089cefaadaabb6d9fc82e78b0a7 (patch) | |
tree | c037b9396db7b40fa63ee2d785f63ce0b1eebd78 | |
parent | e6799cc2e8c755a0317e664f29de0b08ddd0eb35 (diff) |
ath9k: Remove unnecessary gpio configuration in ath9k_hw_reset()
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index baa7a7e47c2b..65e0d80f3b4d 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -2255,18 +2255,8 @@ int ath9k_hw_reset(struct ath_hal *ah, struct ath9k_channel *chan, | |||
2255 | return -EINVAL; | 2255 | return -EINVAL; |
2256 | } | 2256 | } |
2257 | 2257 | ||
2258 | if (AR_SREV_9280_10_OR_LATER(ah)) { | 2258 | if (AR_SREV_9280_10_OR_LATER(ah)) |
2259 | REG_SET_BIT(ah, AR_GPIO_INPUT_EN_VAL, | 2259 | REG_SET_BIT(ah, AR_GPIO_INPUT_EN_VAL, AR_GPIO_JTAG_DISABLE); |
2260 | AR_GPIO_JTAG_DISABLE); | ||
2261 | |||
2262 | if (test_bit(ATH9K_MODE_11A, ah->ah_caps.wireless_modes)) { | ||
2263 | if (IS_CHAN_5GHZ(chan)) | ||
2264 | ath9k_hw_set_gpio(ah, 9, 0); | ||
2265 | else | ||
2266 | ath9k_hw_set_gpio(ah, 9, 1); | ||
2267 | } | ||
2268 | ath9k_hw_cfg_output(ah, 9, AR_GPIO_OUTPUT_MUX_AS_OUTPUT); | ||
2269 | } | ||
2270 | 2260 | ||
2271 | r = ath9k_hw_process_ini(ah, chan, sc->tx_chan_width); | 2261 | r = ath9k_hw_process_ini(ah, chan, sc->tx_chan_width); |
2272 | if (r) | 2262 | if (r) |