瀏覽代碼

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 <johannes.berg@intel.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Johannes Berg 9 年之前
父節點
當前提交
a6f4850dbc
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/thermal/Kconfig

+ 1 - 0
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