Skip to content

Commit a6f4850

Browse files
jmberg-intelEduardo Valentin
authored andcommitted
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>
1 parent 1d0fd42 commit a6f4850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/thermal/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ config MTK_THERMAL
377377
depends on ARCH_MEDIATEK || COMPILE_TEST
378378
depends on HAS_IOMEM
379379
depends on NVMEM || NVMEM=n
380+
depends on RESET_CONTROLLER
380381
default y
381382
help
382383
Enable this option if you want to have support for thermal management

0 commit comments

Comments
 (0)