diff mbox series

thermal: qoriq: fix a compiling issue

Message ID 20200303040211.31304-1-andy.tang@nxp.com
State Superseded, archived
Headers show
Series thermal: qoriq: fix a compiling issue | expand

Commit Message

Andy Tang March 3, 2020, 4:02 a.m. UTC
From: Yuantian Tang <andy.tang@nxp.com>

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.

Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
---
 drivers/thermal/Kconfig | 1 +
 1 file changed, 1 insertion(+)

--
2.17.1

Comments

Daniel Lezcano March 3, 2020, 7:52 a.m. UTC | #1
On 03/03/2020 05:02, andy.tang@nxp.com wrote:
> From: Yuantian Tang <andy.tang@nxp.com>
> 
> 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.
> 
> Signed-off-by: Yuantian Tang <andy.tang@nxp.com>

Please add the 'Fixes' tag

Thanks

> ---
>  drivers/thermal/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
> index 5a05db5438d6..5a0df0e54ce3 100644
> --- a/drivers/thermal/Kconfig
> +++ b/drivers/thermal/Kconfig
> @@ -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
>
diff mbox series

Patch

diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 5a05db5438d6..5a0df0e54ce3 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -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