diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-19 12:01:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-19 14:41:56 -0500 |
commit | 6a4d05dc0c0178b0c30dbda6e9bb79b5dd9662f5 (patch) | |
tree | aea41315bf3b8ad84a2b164246d7b10873f356d2 /drivers/net/wireless/ath/ath9k/ar9002_mac.c | |
parent | 08f336b808cea6f776f918f21ad05fe433362987 (diff) |
ath9k: move ath9k_debug_sync_cause out of ath9k_hw
ath9k_hw should not depend on any ath9k data structures like ath_softc
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/ar9002_mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9002_mac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c b/drivers/net/wireless/ath/ath9k/ar9002_mac.c index 8d78253c26ce..857ede3a999c 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c | |||
@@ -29,7 +29,8 @@ static void ar9002_hw_set_desc_link(void *ds, u32 ds_link) | |||
29 | ((struct ath_desc*) ds)->ds_link = ds_link; | 29 | ((struct ath_desc*) ds)->ds_link = ds_link; |
30 | } | 30 | } |
31 | 31 | ||
32 | static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked) | 32 | static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked, |
33 | u32 *sync_cause_p) | ||
33 | { | 34 | { |
34 | u32 isr = 0; | 35 | u32 isr = 0; |
35 | u32 mask2 = 0; | 36 | u32 mask2 = 0; |
@@ -136,7 +137,8 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked) | |||
136 | } | 137 | } |
137 | 138 | ||
138 | if (sync_cause) { | 139 | if (sync_cause) { |
139 | ath9k_debug_sync_cause(common, sync_cause); | 140 | if (sync_cause_p) |
141 | *sync_cause_p = sync_cause; | ||
140 | fatal_int = | 142 | fatal_int = |
141 | (sync_cause & | 143 | (sync_cause & |
142 | (AR_INTR_SYNC_HOST1_FATAL | AR_INTR_SYNC_HOST1_PERR)) | 144 | (AR_INTR_SYNC_HOST1_FATAL | AR_INTR_SYNC_HOST1_PERR)) |