diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-12-03 23:53:32 +0100 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-07 13:02:38 +0530 |
commit | fc928b901dc68481ba3e524860a641fe13e25dfe (patch) | |
tree | e5db7b822511abe4d3e12aecfc4f35ab0644ac0a /drivers/cpufreq/cpufreq_powersave.c | |
parent | d15183991c2d53d7cecf27a1555c91b702cef1ea (diff) | |
download | linux-fc928b901dc68481ba3e524860a641fe13e25dfe.tar.gz linux-fc928b901dc68481ba3e524860a641fe13e25dfe.tar.bz2 linux-fc928b901dc68481ba3e524860a641fe13e25dfe.zip |
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: 2782ef34ed23 ("cpufreq: imx: Select NVMEM_IMX_OCOTP")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq_powersave.c')
0 files changed, 0 insertions, 0 deletions