From: Johannes Berg Date: Thu, 14 Apr 2016 13:15:20 +0000 (+0200) Subject: thermal: fix Mediatek thermal controller build X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a6f4850dbca66e46a73b8774e85aaf9fc0caf265;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git thermal: fix Mediatek thermal controller build At least with CONFIG_COMPILE_TEST, there's no reason to assume that CONFIG_RESET_CONTROLLER is set, but the code for this controller requires it since it calls device_reset(). Make CONFIG_MTK_THERMAL properly depend on CONFIG_RESET_CONTROLLER. Signed-off-by: Johannes Berg Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 5c7711091964..3c3dc4a3d52c 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -377,6 +377,7 @@ config MTK_THERMAL depends on ARCH_MEDIATEK || COMPILE_TEST depends on HAS_IOMEM depends on NVMEM || NVMEM=n + depends on RESET_CONTROLLER default y help Enable this option if you want to have support for thermal management