Skip to content

Commit fc928b9

Browse files
arndbvireshk
authored andcommitted
cpufreq: imx: fix NVMEM_IMX_OCOTP dependency
A driver should not 'select' drivers from another subsystem. If NVMEM is disabled, this one results in a warning: WARNING: unmet direct dependencies detected for NVMEM_IMX_OCOTP Depends on [n]: NVMEM [=n] && (ARCH_MXC [=y] || COMPILE_TEST [=y]) && HAS_IOMEM [=y] Selected by [y]: - ARM_IMX6Q_CPUFREQ [=y] && CPU_FREQ [=y] && (ARM || ARM64 [=y]) && ARCH_MXC [=y] && REGULATOR_ANATOP [=y] Change the 'select' to 'depends on' to prevent it from going wrong, and allow compile-testing without that driver, since it is only a runtime dependency. Fixes: 2782ef3 ("cpufreq: imx: Select NVMEM_IMX_OCOTP") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent d151839 commit fc928b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/cpufreq/Kconfig.arm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ config ARM_IMX6Q_CPUFREQ
9494
tristate "Freescale i.MX6 cpufreq support"
9595
depends on ARCH_MXC
9696
depends on REGULATOR_ANATOP
97-
select NVMEM_IMX_OCOTP
97+
depends on NVMEM_IMX_OCOTP || COMPILE_TEST
9898
select PM_OPP
9999
help
100100
This adds cpufreq driver support for Freescale i.MX6 series SoCs.

0 commit comments

Comments
 (0)