diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-02-15 09:33:14 +0100 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-02-15 14:08:23 +0530 |
commit | 3093fa33539b54db77171d2919352ad4f044a1c5 (patch) | |
tree | 767fb61ca5051f96fc3ab5948e66947a7b6b5bc3 /include/linux/scmi_protocol.h | |
parent | 032b149bcc54759b90c1851b0e13dff5e8c6f349 (diff) |
cpufreq: qcom-hw: add CONFIG_COMMON_CLK dependency
It is still possible to compile-test a kernel without CONFIG_COMMON_CLK
for some ancient ARM boards or other architectures, but this causes a
link failure in the qcom-cpufreq-hw driver:
ERROR: modpost: "devm_clk_hw_register" [drivers/cpufreq/qcom-cpufreq-hw.ko] undefined!
ERROR: modpost: "devm_of_clk_add_hw_provider" [drivers/cpufreq/qcom-cpufreq-hw.ko] undefined!
ERROR: modpost: "of_clk_hw_onecell_get" [drivers/cpufreq/qcom-cpufreq-hw.ko] undefined!
Add a Kconfig dependency here to make sure this always work. Apparently
this bug has been in the kernel for a while without me running into it
on randconfig builds as COMMON_CLK is almost always enabled.
I have cross-checked by building an allmodconfig kernel with COMMON_CLK
disabled, which showed no other driver having this problem.
Fixes: 4370232c727b ("cpufreq: qcom-hw: Add CPU clock provider support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'include/linux/scmi_protocol.h')
0 files changed, 0 insertions, 0 deletions