From: Leo Yan Date: Wed, 31 Aug 2016 08:50:16 +0000 (+0800) Subject: thermal: hisilicon: fix for dependency X-Git-Tag: v4.10-rc1~160^2~1^3~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f05f4821268d9c5904fe60c859390360b2898783;p=karo-tx-linux.git 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 Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index a13541bdc726..c2c056cc7ea5 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -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