thermal: hisilicon: fix for dependency
authorLeo Yan <leo.yan@linaro.org>
Wed, 31 Aug 2016 08:50:16 +0000 (16:50 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:07:35 +0000 (10:07 +0800)
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>
drivers/thermal/Kconfig

index a13541b..c2c056c 100644 (file)
@@ -177,8 +177,10 @@ config THERMAL_EMULATION
 
 config HISI_THERMAL
        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 OF
+       default y
        help
          Enable this to plug hisilicon's thermal sensor driver into the Linux
          thermal framework. cpufreq is used as the cooling device to throttle