ath9k: merge reset related functions
authorFelix Fietkau <nbd@openwrt.org>
Fri, 2 Sep 2011 23:40:26 +0000 (01:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Sep 2011 17:56:21 +0000 (13:56 -0400)
commit9adcf440dcc886a950a6049f928ab679912d99f4
tree3428035eecfbefc1a51890fcf211b885a4770c43
parent236de5149b9cbec3e76aef00a4663a8de7feeebe
ath9k: merge reset related functions

reduces unnecessary code duplication. Also takes the sc_pcu_lock within
ath_reset instead of callsites, which makes it possible to always cancel
all queued work items before the reset, possibly fixing a few race
conditions (work items vs reset) along with it.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c