thermal: qoriq: Fix a compiling issue
authorYuantian Tang <andy.tang@nxp.com>
Tue, 3 Mar 2020 08:46:41 +0000 (16:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:38:20 +0000 (10:38 +0200)
[ Upstream commit cbe259fd80b7b02fba0dad79d8fdda8b70a8b963 ]

Qoriq thermal driver is used by both PowerPC and ARM architecture.
When built for PowerPC architecture, it reports error:
undefined reference to `.__devm_regmap_init_mmio_clk'
To fix it, select config REGMAP_MMIO.

Fixes: 4316237bd627 (thermal: qoriq: Convert driver to use regmap API)
Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200303084641.35687-1-andy.tang@nxp.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/Kconfig

index 5a05db5438d601be74cecd047c79fdda1d6ce633..5a0df0e54ce3eedbac417dccdef51bd4274a6f33 100644 (file)
@@ -265,6 +265,7 @@ config QORIQ_THERMAL
        tristate "QorIQ Thermal Monitoring Unit"
        depends on THERMAL_OF
        depends on HAS_IOMEM
+       select REGMAP_MMIO
        help
          Support for Thermal Monitoring Unit (TMU) found on QorIQ platforms.
          It supports one critical trip point and one passive trip point. The