diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-05 12:03:42 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-06 16:30:38 -0400 |
commit | 435c1610f46dc4d86a6633adb037b18109e6ffdc (patch) | |
tree | 1fed9f079db50cdd7305abe668848e53ef03223c /drivers/net/wireless/ath/ath9k/eeprom_4k.c | |
parent | 9dbebc7fd07ab66341dce8d001272db400c11e03 (diff) | |
download | kernel_samsung_smdk4412-435c1610f46dc4d86a6633adb037b18109e6ffdc.zip kernel_samsung_smdk4412-435c1610f46dc4d86a6633adb037b18109e6ffdc.tar.gz kernel_samsung_smdk4412-435c1610f46dc4d86a6633adb037b18109e6ffdc.tar.bz2 |
ath9k_hw: clean up register write buffering
Throughout the code, DISABLE_REGWRITE_BUFFER is always called right after
REGWRITE_BUFFER_FLUSH. Since that's unlikely to change any time soon, that
makes keeping those ops separate rather pointless, as it only increases
code size and line number counts.
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/eeprom_4k.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_4k.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_4k.c b/drivers/net/wireless/ath/ath9k/eeprom_4k.c index 872e75b..4fa4d8e 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c @@ -508,7 +508,6 @@ static void ath9k_hw_set_4k_power_cal_table(struct ath_hw *ah, } REGWRITE_BUFFER_FLUSH(ah); - DISABLE_REGWRITE_BUFFER(ah); } } @@ -840,7 +839,6 @@ static void ath9k_hw_4k_set_txpower(struct ath_hw *ah, } REGWRITE_BUFFER_FLUSH(ah); - DISABLE_REGWRITE_BUFFER(ah); } static void ath9k_hw_4k_set_addac(struct ath_hw *ah, |