diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-04-14 09:15:20 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2016-04-21 00:13:21 -0400 |
commit | a6f4850dbca66e46a73b8774e85aaf9fc0caf265 (patch) | |
tree | fd958ea26e2841cc87db4b07d175376caf4b27de | |
parent | 1d0fd42fa31d18ba0a3e0dd008c9e93e1cebe451 (diff) |
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>
-rw-r--r-- | drivers/thermal/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
377 | depends on ARCH_MEDIATEK || COMPILE_TEST | 377 | depends on ARCH_MEDIATEK || COMPILE_TEST |
378 | depends on HAS_IOMEM | 378 | depends on HAS_IOMEM |
379 | depends on NVMEM || NVMEM=n | 379 | depends on NVMEM || NVMEM=n |
380 | depends on RESET_CONTROLLER | ||
380 | default y | 381 | default y |
381 | help | 382 | help |
382 | Enable this option if you want to have support for thermal management | 383 | Enable this option if you want to have support for thermal management |