]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: kryo: allow building as a loadable module
authorArnd Bergmann <arnd@arndb.de>
Tue, 5 Jun 2018 11:44:24 +0000 (13:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Jun 2018 06:29:29 +0000 (08:29 +0200)
commita73a0a254c0aa706683350f6e6635d09338d0131
treed57a70b5e89f0e35144468dc1159062a661a5c47
parentdd8c75fe0cfe9ebc4aa3a3ca3dbbb08642d4d9e7
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: b293b8403885 (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>
drivers/cpufreq/Kconfig.arm