aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-03-03 20:03:59 -0500
committerEduardo Valentin <edubezval@gmail.com>2016-03-08 15:22:35 -0500
commitbf82c350e940f5ee3508a94165a99eda81298d5f (patch)
tree28480fb692174ea57525f30276cee60645276198
parent13369194256a95c5fd63472b0f5abcfd58a284c1 (diff)
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: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r--drivers/thermal/Kconfig8
-rw-r--r--drivers/thermal/samsung/Kconfig1
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 962ddaf39cae..d1fd2e5d25e2 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -178,6 +178,7 @@ config THERMAL_EMULATION
178config HISI_THERMAL 178config HISI_THERMAL
179 tristate "Hisilicon thermal driver" 179 tristate "Hisilicon thermal driver"
180 depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST 180 depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST
181 depends on HAS_IOMEM
181 help 182 help
182 Enable this to plug hisilicon's thermal sensor driver into the Linux 183 Enable this to plug hisilicon's thermal sensor driver into the Linux
183 thermal framework. cpufreq is used as the cooling device to throttle 184 thermal framework. cpufreq is used as the cooling device to throttle
@@ -197,6 +198,7 @@ config IMX_THERMAL
197config SPEAR_THERMAL 198config SPEAR_THERMAL
198 tristate "SPEAr thermal sensor driver" 199 tristate "SPEAr thermal sensor driver"
199 depends on PLAT_SPEAR || COMPILE_TEST 200 depends on PLAT_SPEAR || COMPILE_TEST
201 depends on HAS_IOMEM
200 depends on OF 202 depends on OF
201 help 203 help
202 Enable this to plug the SPEAr thermal sensor driver into the Linux 204 Enable this to plug the SPEAr thermal sensor driver into the Linux
@@ -206,6 +208,7 @@ config ROCKCHIP_THERMAL
206 tristate "Rockchip thermal driver" 208 tristate "Rockchip thermal driver"
207 depends on ARCH_ROCKCHIP || COMPILE_TEST 209 depends on ARCH_ROCKCHIP || COMPILE_TEST
208 depends on RESET_CONTROLLER 210 depends on RESET_CONTROLLER
211 depends on HAS_IOMEM
209 help 212 help
210 Rockchip thermal driver provides support for Temperature sensor 213 Rockchip thermal driver provides support for Temperature sensor
211 ADC (TS-ADC) found on Rockchip SoCs. It supports one critical 214 ADC (TS-ADC) found on Rockchip SoCs. It supports one critical
@@ -223,6 +226,7 @@ config RCAR_THERMAL
223config KIRKWOOD_THERMAL 226config KIRKWOOD_THERMAL
224 tristate "Temperature sensor on Marvell Kirkwood SoCs" 227 tristate "Temperature sensor on Marvell Kirkwood SoCs"
225 depends on MACH_KIRKWOOD || COMPILE_TEST 228 depends on MACH_KIRKWOOD || COMPILE_TEST
229 depends on HAS_IOMEM
226 depends on OF 230 depends on OF
227 help 231 help
228 Support for the Kirkwood thermal sensor driver into the Linux thermal 232 Support for the Kirkwood thermal sensor driver into the Linux thermal
@@ -231,6 +235,7 @@ config KIRKWOOD_THERMAL
231config DOVE_THERMAL 235config DOVE_THERMAL
232 tristate "Temperature sensor on Marvell Dove SoCs" 236 tristate "Temperature sensor on Marvell Dove SoCs"
233 depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST 237 depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST
238 depends on HAS_IOMEM
234 depends on OF 239 depends on OF
235 help 240 help
236 Support for the Dove thermal sensor driver in the Linux thermal 241 Support for the Dove thermal sensor driver in the Linux thermal
@@ -249,6 +254,7 @@ config DB8500_THERMAL
249config ARMADA_THERMAL 254config ARMADA_THERMAL
250 tristate "Armada 370/XP thermal management" 255 tristate "Armada 370/XP thermal management"
251 depends on ARCH_MVEBU || COMPILE_TEST 256 depends on ARCH_MVEBU || COMPILE_TEST
257 depends on HAS_IOMEM
252 depends on OF 258 depends on OF
253 help 259 help
254 Enable this option if you want to have support for thermal management 260 Enable this option if you want to have support for thermal management
@@ -267,6 +273,7 @@ config TEGRA_SOCTHERM
267config DB8500_CPUFREQ_COOLING 273config DB8500_CPUFREQ_COOLING
268 tristate "DB8500 cpufreq cooling" 274 tristate "DB8500 cpufreq cooling"
269 depends on ARCH_U8500 || COMPILE_TEST 275 depends on ARCH_U8500 || COMPILE_TEST
276 depends on HAS_IOMEM
270 depends on CPU_THERMAL 277 depends on CPU_THERMAL
271 default y 278 default y
272 help 279 help
@@ -367,6 +374,7 @@ config INTEL_PCH_THERMAL
367 374
368menu "Texas Instruments thermal drivers" 375menu "Texas Instruments thermal drivers"
369depends on ARCH_HAS_BANDGAP || COMPILE_TEST 376depends on ARCH_HAS_BANDGAP || COMPILE_TEST
377depends on HAS_IOMEM
370source "drivers/thermal/ti-soc-thermal/Kconfig" 378source "drivers/thermal/ti-soc-thermal/Kconfig"
371endmenu 379endmenu
372 380
diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
index e0da3865e060..222e644169f0 100644
--- a/drivers/thermal/samsung/Kconfig
+++ b/drivers/thermal/samsung/Kconfig
@@ -1,6 +1,7 @@
1config EXYNOS_THERMAL 1config EXYNOS_THERMAL
2 tristate "Exynos thermal management unit driver" 2 tristate "Exynos thermal management unit driver"
3 depends on THERMAL_OF 3 depends on THERMAL_OF
4 depends on HAS_IOMEM
4 help 5 help
5 If you say yes here you get support for the TMU (Thermal Management 6 If you say yes here you get support for the TMU (Thermal Management
6 Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises 7 Unit) driver for SAMSUNG EXYNOS series of SoCs. This driver initialises