soc: amlogic: fix compile failure with MESON_SECURE_PM_DOMAINS & !MESON_SM
authorJianxin Pan <jianxin.pan@amlogic.com>
Mon, 17 Feb 2020 16:12:13 +0000 (00:12 +0800)
committerKevin Hilman <khilman@baylibre.com>
Sat, 29 Feb 2020 16:53:43 +0000 (08:53 -0800)
commit9ef7a7920678b10431d88635f9a4a49bd23ca3a7
tree9fca9a86c981afed102f7038700b00ba4af32509
parentb3dde5013e13d44799b3477cd0bf0c9ad34fe5e9
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<sfr@canb.auug.org.au>
Reported-by: patchwork-bot+linux-amlogic<patchwork-bot+linux-amlogic@kernel.org>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Stephen Rothwell<sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/1581955933-69832-1-git-send-email-jianxin.pan@amlogic.com
drivers/soc/amlogic/Kconfig