Browse Source

thermal: hisilicon: fix for dependency

The thermal driver is standalone driver which is used to enable
thermal sensors, so it can be used with any cooling device and
should not bind with CPU cooling device driver.

This original patch is suggested by Amit Kucheria; so it's to
polish the dependency in Kconfig, and remove the dependency with
CPU_THERMAL.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Leo Yan 9 years ago
parent
commit
f05f482126
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/thermal/Kconfig

+ 3 - 1
drivers/thermal/Kconfig

@@ -177,8 +177,10 @@ 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 || COMPILE_TEST
 	depends on HAS_IOMEM
 	depends on HAS_IOMEM
+	depends on OF
+	default y
 	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