Commit bf82c350 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Eduardo Valentin

thermal: Fix build error of missing devm_ioremap_resource on UM

The devres.o gets linked if HAS_IOMEM is present so on ARCH=um
allyesconfig (COMPILE_TEST) failed on many files with:

drivers/built-in.o: In function `kirkwood_thermal_probe':
kirkwood_thermal.c:(.text+0x390a25): undefined reference to `devm_ioremap_resource'
drivers/built-in.o: In function `exynos_tmu_probe':
exynos_tmu.c:(.text+0x39246b): undefined reference to `devm_ioremap'

The users of devm_ioremap_resource() which are compile-testable should
depend on HAS_IOMEM.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 13369194
...@@ -178,6 +178,7 @@ config THERMAL_EMULATION ...@@ -178,6 +178,7 @@ config THERMAL_EMULATION
config HISI_THERMAL config HISI_THERMAL
tristate "Hisilicon thermal driver" tristate "Hisilicon thermal driver"
depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST
depends on HAS_IOMEM
help help
Enable this to plug hisilicon's thermal sensor driver into the Linux Enable this to plug hisilicon's thermal sensor driver into the Linux
thermal framework. cpufreq is used as the cooling device to throttle thermal framework. cpufreq is used as the cooling device to throttle
...@@ -197,6 +198,7 @@ config IMX_THERMAL ...@@ -197,6 +198,7 @@ config IMX_THERMAL
config SPEAR_THERMAL config SPEAR_THERMAL
tristate "SPEAr thermal sensor driver" tristate "SPEAr thermal sensor driver"
depends on PLAT_SPEAR || COMPILE_TEST depends on PLAT_SPEAR || COMPILE_TEST
depends on HAS_IOMEM
depends on OF depends on OF
help help
Enable this to plug the SPEAr thermal sensor driver into the Linux Enable this to plug the SPEAr thermal sensor driver into the Linux
...@@ -206,6 +208,7 @@ config ROCKCHIP_THERMAL ...@@ -206,6 +208,7 @@ config ROCKCHIP_THERMAL
tristate "Rockchip thermal driver" tristate "Rockchip thermal driver"
depends on ARCH_ROCKCHIP || COMPILE_TEST depends on ARCH_ROCKCHIP || COMPILE_TEST
depends on RESET_CONTROLLER depends on RESET_CONTROLLER
depends on HAS_IOMEM
help help
Rockchip thermal driver provides support for Temperature sensor Rockchip thermal driver provides support for Temperature sensor
ADC (TS-ADC) found on Rockchip SoCs. It supports one critical ADC (TS-ADC) found on Rockchip SoCs. It supports one critical
...@@ -223,6 +226,7 @@ config RCAR_THERMAL ...@@ -223,6 +226,7 @@ config RCAR_THERMAL
config KIRKWOOD_THERMAL config KIRKWOOD_THERMAL
tristate "Temperature sensor on Marvell Kirkwood SoCs" tristate "Temperature sensor on Marvell Kirkwood SoCs"
depends on MACH_KIRKWOOD || COMPILE_TEST depends on MACH_KIRKWOOD || COMPILE_TEST
depends on HAS_IOMEM
depends on OF depends on OF
help help
Support for the Kirkwood thermal sensor driver into the Linux thermal Support for the Kirkwood thermal sensor driver into the Linux thermal
...@@ -231,6 +235,7 @@ config KIRKWOOD_THERMAL ...@@ -231,6 +235,7 @@ config KIRKWOOD_THERMAL
config DOVE_THERMAL config DOVE_THERMAL
tristate "Temperature sensor on Marvell Dove SoCs" tristate "Temperature sensor on Marvell Dove SoCs"
depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST
depends on HAS_IOMEM
depends on OF depends on OF
help help
Support for the Dove thermal sensor driver in the Linux thermal Support for the Dove thermal sensor driver in the Linux thermal
...@@ -249,6 +254,7 @@ config DB8500_THERMAL ...@@ -249,6 +254,7 @@ config DB8500_THERMAL
config ARMADA_THERMAL config ARMADA_THERMAL
tristate "Armada 370/XP thermal management" tristate "Armada 370/XP thermal management"
depends on ARCH_MVEBU || COMPILE_TEST depends on ARCH_MVEBU || COMPILE_TEST
depends on HAS_IOMEM
depends on OF depends on OF
help help
Enable this option if you want to have support for thermal management Enable this option if you want to have support for thermal management
...@@ -267,6 +273,7 @@ config TEGRA_SOCTHERM ...@@ -267,6 +273,7 @@ config TEGRA_SOCTHERM
config DB8500_CPUFREQ_COOLING config DB8500_CPUFREQ_COOLING
tristate "DB8500 cpufreq cooling" tristate "DB8500 cpufreq cooling"
depends on ARCH_U8500 || COMPILE_TEST depends on ARCH_U8500 || COMPILE_TEST
depends on HAS_IOMEM
depends on CPU_THERMAL depends on CPU_THERMAL
default y default y
help help
...@@ -367,6 +374,7 @@ config INTEL_PCH_THERMAL ...@@ -367,6 +374,7 @@ config INTEL_PCH_THERMAL
menu "Texas Instruments thermal drivers" menu "Texas Instruments thermal drivers"
depends on ARCH_HAS_BANDGAP || COMPILE_TEST depends on ARCH_HAS_BANDGAP || COMPILE_TEST
depends on HAS_IOMEM
source "drivers/thermal/ti-soc-thermal/Kconfig" source "drivers/thermal/ti-soc-thermal/Kconfig"
endmenu endmenu
......
config EXYNOS_THERMAL config EXYNOS_THERMAL
tristate "Exynos thermal management unit driver" tristate "Exynos thermal management unit driver"
depends on THERMAL_OF depends on THERMAL_OF
depends on HAS_IOMEM
help help
If you say yes here you get support for the TMU (Thermal Management If you say yes here you get support for the TMU (Thermal Management
Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment