ARM: exynos: Only build MCPM support if used
authorArnd Bergmann <arnd@arndb.de>
Wed, 19 Jun 2019 12:55:29 +0000 (14:55 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 21 Jun 2019 18:09:35 +0000 (20:09 +0200)
commit24d2c73ff28bcda48607eacc4bc804002dbf78d9
tree954aeacb3d8233677f30ac5e38fb5f813e80ba36
parent0cca82ec3455783d1f2decee2b09c4c7fd07dfa3
ARM: exynos: Only build MCPM support if used

We get a link error for configurations that enable an Exynos
SoC that does not require MCPM, but then manually enable
MCPM anyway without also turning on the arm-cci:

arch/arm/mach-exynos/mcpm-exynos.o: In function `exynos_pm_power_up_setup':
mcpm-exynos.c:(.text+0x8): undefined reference to `cci_enable_port_for_self'

Change it back to only build the code we actually need, by
introducing a CONFIG_EXYNOS_MCPM that serves the same purpose
as the older CONFIG_EXYNOS5420_MCPM.

Fixes: 2997520c2d4e ("ARM: exynos: Set MCPM as mandatory for Exynos542x/5800 SoCs")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-exynos/Kconfig
arch/arm/mach-exynos/Makefile
arch/arm/mach-exynos/suspend.c