diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-09-03 11:20:58 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-09-04 21:30:22 -0400 |
commit | 5269e7067cd66f4797760f160be21ff50f2d1582 (patch) | |
tree | e1bc611e05019bc4b39fe46f7d8609ff3fa85a37 | |
parent | a2022001cebd0825b96aa0f3345ea3ad44ae79d4 (diff) |
cpufreq: Add ARM_MT8173_CPUFREQ dependency on THERMAL
If ARM_MT8173_CPUFREQ is configured, and THERMAL is configured as module,
the following build error is seen for arm:allmodconfig and
arm64:allmodconfig.
drivers/built-in.o: In function `mtk_cpufreq_ready':
:(.text+0x32a20c): undefined reference to `of_cpufreq_cooling_register'
drivers/built-in.o: In function `mtk_cpufreq_exit':
:(.text+0x32a420): undefined reference to `cpufreq_cooling_unregister'
The fix is similar to CPUFREQ_DT, but more restrictive since
ARM_MT8173_CPUFREQ can not be built as module.
Fixes: 1453863fb02a ("cpufreq: mediatek: Add MT8173 cpufreq driver")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/Kconfig.arm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 2bacf24a19a9..360c5df55207 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm | |||
@@ -133,6 +133,7 @@ config ARM_KIRKWOOD_CPUFREQ | |||
133 | config ARM_MT8173_CPUFREQ | 133 | config ARM_MT8173_CPUFREQ |
134 | bool "Mediatek MT8173 CPUFreq support" | 134 | bool "Mediatek MT8173 CPUFreq support" |
135 | depends on ARCH_MEDIATEK && REGULATOR | 135 | depends on ARCH_MEDIATEK && REGULATOR |
136 | depends on !CPU_THERMAL || THERMAL=y | ||
136 | select PM_OPP | 137 | select PM_OPP |
137 | help | 138 | help |
138 | This adds the CPUFreq driver support for Mediatek MT8173 SoC. | 139 | This adds the CPUFreq driver support for Mediatek MT8173 SoC. |