aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/gpio.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-08 14:06:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-10-11 16:41:25 -0400
commit72d874c67c3cdf21ca95045baabac6a5843222d8 (patch)
tree35991acbb640abc8f12aefa27cdcfc832a7d084d /drivers/net/wireless/ath/ath9k/gpio.c
parentac06697c79bad09e44a8b1d52104014016fb90de (diff)
ath9k_hw: make ath9k_hw_set_interrupts use ah->imask by default
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/gpio.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index fd0f84ebdb5..61eee8c49a1 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -155,7 +155,7 @@ static void ath9k_gen_timer_start(struct ath_hw *ah,
155 if ((ah->imask & ATH9K_INT_GENTIMER) == 0) { 155 if ((ah->imask & ATH9K_INT_GENTIMER) == 0) {
156 ath9k_hw_disable_interrupts(ah); 156 ath9k_hw_disable_interrupts(ah);
157 ah->imask |= ATH9K_INT_GENTIMER; 157 ah->imask |= ATH9K_INT_GENTIMER;
158 ath9k_hw_set_interrupts(ah, ah->imask); 158 ath9k_hw_set_interrupts(ah);
159 ath9k_hw_enable_interrupts(ah); 159 ath9k_hw_enable_interrupts(ah);
160 } 160 }
161} 161}
@@ -170,7 +170,7 @@ static void ath9k_gen_timer_stop(struct ath_hw *ah, struct ath_gen_timer *timer)
170 if (timer_table->timer_mask.val == 0) { 170 if (timer_table->timer_mask.val == 0) {
171 ath9k_hw_disable_interrupts(ah); 171 ath9k_hw_disable_interrupts(ah);
172 ah->imask &= ~ATH9K_INT_GENTIMER; 172 ah->imask &= ~ATH9K_INT_GENTIMER;
173 ath9k_hw_set_interrupts(ah, ah->imask); 173 ath9k_hw_set_interrupts(ah);
174 ath9k_hw_enable_interrupts(ah); 174 ath9k_hw_enable_interrupts(ah);
175 } 175 }
176} 176}