]> git.baikalelectronics.ru Git - kernel.git/commit
clk: lan966x: Fix linking error
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sat, 19 Feb 2022 14:15:36 +0000 (15:15 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 25 Feb 2022 00:53:24 +0000 (16:53 -0800)
commit8306496e10de3aebd092ce5b56029e2999799308
tree504a9824f36c116362c131646f1ad1dfcc4d1b2e
parent4246ab3c89a7bf6b699870d05768059fb4467d83
clk: lan966x: Fix linking error

If the config options HAS_IOMEM is not set then the driver fails to link
with the following error:
clk-lan966x.c:(.text+0x950): undefined reference to
`devm_platform_ioremap_resource'

Therefor add missing dependencies: HAS_IOMEM and OF.

Fixes: b0f82ff7d189 ("clk: lan966x: Add lan966x SoC clock driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220219141536.460812-1-horatiu.vultur@microchip.com
Reviewed-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/Kconfig