remoteproc: qcom: fix glink dependencies
authorArnd Bergmann <arnd@arndb.de>
Thu, 4 Feb 2021 15:40:04 +0000 (16:40 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 9 Feb 2021 15:01:50 +0000 (09:01 -0600)
commitbfb44502b8fc865c9962ca335ae9877579ff4a9c
treebbdc5c2ec43d30f3b7879ddd87850fe5461486ba
parentcf34838d591f1fce426fb7823c2f1890b6d1ccc8
remoteproc: qcom: fix glink dependencies

Building the remoteproc drivers into the kernel while the qcom_glink
code is in a loadable module results in a link error:

ld.lld: error: undefined symbol: qcom_glink_ssr_notify
>>> referenced by vmlinux.o:(glink_subdev_unprepare)

Add a Kconfig dependency to avoid this.

Reviewed-by: Alex Elder <elder@linaro.org>
Fixes: 8527efc59d45 ("rpmsg: glink: Guard qcom_glink_ssr_notify() with correct config")
Fixes: 5d1f2e3c8090 ("soc: qcom: glink_ssr: Internalize ssr_notifiers")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210204154010.1585457-1-arnd@kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/Kconfig