Commit 5c0ec012 authored by Kalle Valo's avatar Kalle Valo

ath11k: fix link error when CONFIG_REMOTEPROC is disabled

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Fixes: 1ff8ed78 ("ath11k: use remoteproc only with AHB devices")
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/0101017476e38f40-c4168ac4-c00a-4220-a032-fe17e4a157cb-000000@us-west-2.amazonses.com
parent a9d9e038
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment