projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9d9e03
)
ath11k: fix link error when CONFIG_REMOTEPROC is disabled
author
Kalle Valo
<kvalo@codeaurora.org>
Thu, 10 Sep 2020 07:20:59 +0000
(07:20 +0000)
committer
Kalle Valo
<kvalo@codeaurora.org>
Fri, 11 Sep 2020 09:58:09 +0000
(12:58 +0300)
If CONFIG_REMOTEPROC was disabled the linking failed with:
ERROR: modpost: "rproc_get_by_phandle" [drivers/net/wireless/ath/ath11k/ath11k.ko] undefined!
Compile tested only.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Fixes: 1ff8ed786d5d ("ath11k: use remoteproc only with AHB devices")
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/0101017476e38f40-c4168ac4-c00a-4220-a032-fe17e4a157cb-000000@us-west-2.amazonses.com
drivers/net/wireless/ath/ath11k/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath11k/core.c
b/drivers/net/wireless/ath/ath11k/core.c
index 06c3df6037d54ecb81dac0ee8b1e9782a2021475..ce81702b27d26a8202d19f317bcdea0a6bcc1a1a 100644
(file)
--- a/
drivers/net/wireless/ath/ath11k/core.c
+++ b/
drivers/net/wireless/ath/ath11k/core.c
@@
-848,6
+848,9
@@
static int ath11k_core_get_rproc(struct ath11k_base *ab)
struct rproc *prproc;
phandle rproc_phandle;
+ if (!IS_ENABLED(CONFIG_REMOTEPROC))
+ return 0;
+
if (ab->bus_params.mhi_support)
return 0;