Skip to content

Commit b865a84

Browse files
vireshkrafaeljw
authored andcommitted
cpufreq: airoha: Depends on OF
The Airoha cpufreq depends on OF and must be marked as such. With the kernel compiled without OF support, we get following warning: drivers/cpufreq/airoha-cpufreq.c:109:34: warning: 'airoha_cpufreq_match_list' defined but not used [-Wunused-const-variable=] 109 | static const struct of_device_id airoha_cpufreq_match_list[] __initconst = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Viresh Kumar <[email protected]> Link: https://patch.msgid.link/455e18c947bd9529701a2f1c796f0f934d1354d7.1738050679.git.viresh.kumar@linaro.org Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 93940fb commit b865a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/Kconfig.arm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
1717

1818
config ARM_AIROHA_SOC_CPUFREQ
1919
tristate "Airoha EN7581 SoC CPUFreq support"
20-
depends on ARCH_AIROHA || COMPILE_TEST
20+
depends on (ARCH_AIROHA && OF) || COMPILE_TEST
2121
select PM_OPP
2222
default ARCH_AIROHA
2323
help

0 commit comments

Comments
 (0)