]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a1d402123512ec9912b91202ddf9a7c4f00b60a
tree3428035eecfbefc1a51890fcf211b885a4770c43
parentb90c3fe7d401c75cae6025188e35bcca1a4a310e
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