diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2015-03-20 09:44:50 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-21 02:38:55 -0400 |
commit | 44a89c82feca565efd44b5aef1f1b99b93621d19 (patch) | |
tree | 8628b08517c57e8b5436224dd5ccb6c0cce91e50 | |
parent | 057fcd426e146d0603b7320ea22b8caa24f83b0a (diff) |
ath9k: Fix AIC compilation error
AIC needs to be registered only when BTCOEX is enabled.
This fixes the error reported by kbuild:
>> ERROR: "ar9003_hw_attach_aic_ops" [drivers/net/wireless/ath/ath9k/ath9k_hw.ko] undefined!
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index c22edd3ce716..aaec9451de49 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -1117,8 +1117,6 @@ void ar9003_hw_attach_calib_ops(struct ath_hw *ah); | |||
1117 | int ar9002_hw_attach_ops(struct ath_hw *ah); | 1117 | int ar9002_hw_attach_ops(struct ath_hw *ah); |
1118 | void ar9003_hw_attach_ops(struct ath_hw *ah); | 1118 | void ar9003_hw_attach_ops(struct ath_hw *ah); |
1119 | 1119 | ||
1120 | void ar9003_hw_attach_aic_ops(struct ath_hw *ah); | ||
1121 | |||
1122 | void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan); | 1120 | void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan); |
1123 | 1121 | ||
1124 | void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning); | 1122 | void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning); |
@@ -1129,6 +1127,7 @@ void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us); | |||
1129 | void ath9k_hw_setslottime(struct ath_hw *ah, u32 us); | 1127 | void ath9k_hw_setslottime(struct ath_hw *ah, u32 us); |
1130 | 1128 | ||
1131 | #ifdef CONFIG_ATH9K_BTCOEX_SUPPORT | 1129 | #ifdef CONFIG_ATH9K_BTCOEX_SUPPORT |
1130 | void ar9003_hw_attach_aic_ops(struct ath_hw *ah); | ||
1132 | static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah) | 1131 | static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah) |
1133 | { | 1132 | { |
1134 | return ah->btcoex_hw.enabled; | 1133 | return ah->btcoex_hw.enabled; |
@@ -1146,6 +1145,9 @@ ath9k_hw_get_btcoex_scheme(struct ath_hw *ah) | |||
1146 | return ah->btcoex_hw.scheme; | 1145 | return ah->btcoex_hw.scheme; |
1147 | } | 1146 | } |
1148 | #else | 1147 | #else |
1148 | static inline void ar9003_hw_attach_aic_ops(struct ath_hw *ah) | ||
1149 | { | ||
1150 | } | ||
1149 | static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah) | 1151 | static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah) |
1150 | { | 1152 | { |
1151 | return false; | 1153 | return false; |