Skip to content

Commit

Permalink
thermal: fix Mediatek thermal controller build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Eduardo Valentin committed Apr 21, 2016
1 parent 1d0fd42 commit a6f4850
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/thermal/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6f4850

Please sign in to comment.