Skip to contentSkip to conversation

thermal: qoriq: fix a compiling issue

PATCH Superseded [email protected] 2 participants 2 messages Mar 3, 2020 Thermal

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: qoriq: fix a compiling issue

From: Yuantian Tang <[email protected]>

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.

---
 drivers/thermal/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/thermal/Kconfig +1 -0
index 5a05db5438d6..5a0df0e54ce3 100644
@@ -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

--
2.17.1

#1 lore raw
Quoted 8 lines · On 03/03/2020 05:02, [email protected] wrote:

From: Yuantian Tang <[email protected]>

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.

Please add the 'Fixes' tag

Thanks

Quoted 19 lines
---
 drivers/thermal/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/thermal/Kconfig +1 -1
index 5a05db5438d6..5a0df0e54ce3 100644
@@ -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
--

2.17.1

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog