ath9k: do not enable interrupt on set interrupt mask
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Fri, 5 Aug 2011 13:29:40 +0000 (18:59 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Aug 2011 19:52:05 +0000 (15:52 -0400)
commitb037b693265e5c83ddc3f003a713d19b9832bf24
treecb2874b10fb0d8fe1d8c797e4c99e5dfb28859a8
parent8d7763b4332b80028522f8a0d47e6339a13d1fdc
ath9k: do not enable interrupt on set interrupt mask

At preset set_interrupt also enables interrupt after changing
mask. This is not necessary in all cases and also sometime it
breaks the assumption that interrupt was disabled. So let us
enable the interrupt explicity if it was disabled earlier.
This could also avoid unnecessary register ops and also helps
the follow up patch to have global ref count for interrupts ops.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/gpio.c
drivers/net/wireless/ath/ath9k/mac.c
drivers/net/wireless/ath/ath9k/main.c