diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-15 16:25:36 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-19 23:58:24 +0400 |
commit | d7084da0ceeddb9caf84de20cf687bb4a9b842b1 (patch) | |
tree | eeabbf0208421cde5540ed83a66b953d4e788dd8 /drivers/net/wireless/ath/ath9k/ar5008_phy.c | |
parent | 1b8714f7dcd8b41cd2843c42a6cc16ba2d4c899f (diff) | |
download | linux-d7084da0ceeddb9caf84de20cf687bb4a9b842b1.tar.xz |
ath9k_hw: remove dead code in the eeprom ops
The eeprom .set_addac function is only necessary for AR9160, remove it
from eeprom_4k.c and remove the dummy function from eeprom_9287.c
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/ar5008_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar5008_phy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index b130c26d3dd0..1381a39a1da4 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c @@ -801,7 +801,8 @@ static int ar5008_hw_process_ini(struct ath_hw *ah, /* Write ADDAC shifts */ REG_WRITE(ah, AR_PHY_ADC_SERIAL_CTL, AR_PHY_SEL_EXTERNAL_RADIO); - ah->eep_ops->set_addac(ah, chan); + if (ah->eep_ops->set_addac) + ah->eep_ops->set_addac(ah, chan); if (AR_SREV_5416_22_OR_LATER(ah)) { REG_WRITE_ARRAY(&ah->iniAddac, 1, regWrites); |