From: Jianxin Pan Date: Mon, 17 Feb 2020 16:12:13 +0000 (+0800) Subject: soc: amlogic: fix compile failure with MESON_SECURE_PM_DOMAINS & !MESON_SM X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9ef7a7920678b10431d88635f9a4a49bd23ca3a7;p=openwrt%2Fstaging%2Fblogic.git soc: amlogic: fix compile failure with MESON_SECURE_PM_DOMAINS & !MESON_SM When MESON_SECURE_PM_DOMAINS & !MESON_SM, there will be compile failure: .../meson-secure-pwrc.o: In function `meson_secure_pwrc_on': .../meson-secure-pwrc.c:76: undefined reference to `meson_sm_call' Fix this by adding depends on MESON_SM for MESON_SECURE_PM_DOMAINS. Fixes: b3dde5013e13 ("soc: amlogic: Add support for Secure power domains controller") Reported-by: Stephen Rothwell Reported-by: patchwork-bot+linux-amlogic Reported-by: kbuild test robot Signed-off-by: Jianxin Pan Signed-off-by: Kevin Hilman Tested-by: Stephen Rothwell Link: https://lore.kernel.org/r/1581955933-69832-1-git-send-email-jianxin.pan@amlogic.com --- diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 6cb06e7b5e63..321c5e26a268 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -50,7 +50,7 @@ config MESON_EE_PM_DOMAINS config MESON_SECURE_PM_DOMAINS bool "Amlogic Meson Secure Power Domains driver" - depends on ARCH_MESON || COMPILE_TEST + depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM depends on PM && OF depends on HAVE_ARM_SMCCC default ARCH_MESON