Skip to content

Commit ac28927

Browse files
arndbrafaeljw
authored andcommitted
cpufreq: kryo: allow building as a loadable module
Building the kryo cpufreq driver while QCOM_SMEM is a loadable module results in a link error: drivers/cpufreq/qcom-cpufreq-kryo.o: In function `qcom_cpufreq_kryo_probe': qcom-cpufreq-kryo.c:(.text+0xbc): undefined reference to `qcom_smem_get' The problem is that Kconfig ignores interprets the dependency as met when the dependent symbol is a 'bool' one. By making it 'tristate', it will be forced to be a module here, which builds successfully. Fixes: 46e2856 (cpufreq: Add Kryo CPU scaling driver) Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 3c89adb commit ac28927

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
@@ -125,7 +125,7 @@ config ARM_OMAP2PLUS_CPUFREQ
125125
default ARCH_OMAP2PLUS
126126

127127
config ARM_QCOM_CPUFREQ_KRYO
128-
bool "Qualcomm Kryo based CPUFreq"
128+
tristate "Qualcomm Kryo based CPUFreq"
129129
depends on ARM64
130130
depends on QCOM_QFPROM
131131
depends on QCOM_SMEM

0 commit comments

Comments
 (0)