diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2016-03-03 20:03:59 -0500 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2016-03-08 15:22:35 -0500 |
commit | bf82c350e940f5ee3508a94165a99eda81298d5f (patch) | |
tree | 28480fb692174ea57525f30276cee60645276198 | |
parent | 13369194256a95c5fd63472b0f5abcfd58a284c1 (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/Kconfig | 8 | ||||
-rw-r--r-- | drivers/thermal/samsung/Kconfig | 1 |
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 | |||
178 | config HISI_THERMAL | 178 | config 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 | |||
197 | config SPEAR_THERMAL | 198 | config 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 | |||
223 | config KIRKWOOD_THERMAL | 226 | config 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 | |||
231 | config DOVE_THERMAL | 235 | config 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 | |||
249 | config ARMADA_THERMAL | 254 | config 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 | |||
267 | config DB8500_CPUFREQ_COOLING | 273 | config 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 | ||
368 | menu "Texas Instruments thermal drivers" | 375 | menu "Texas Instruments thermal drivers" |
369 | depends on ARCH_HAS_BANDGAP || COMPILE_TEST | 376 | depends on ARCH_HAS_BANDGAP || COMPILE_TEST |
377 | depends on HAS_IOMEM | ||
370 | source "drivers/thermal/ti-soc-thermal/Kconfig" | 378 | source "drivers/thermal/ti-soc-thermal/Kconfig" |
371 | endmenu | 379 | endmenu |
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 @@ | |||
1 | config EXYNOS_THERMAL | 1 | config 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 |