diff options
author | Horatiu Vultur <[email protected]> | 2022-02-19 15:15:36 +0100 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-02-24 16:53:24 -0800 |
commit | aa091a6a91df395a0fa00a808a543301ec99e734 (patch) | |
tree | 504a9824f36c116362c131646f1ad1dfcc4d1b2e | |
parent | 6e6fec3f961c00ca34ffb4bf2ad9febb4b499f8d (diff) |
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: 54104ee02333 ("clk: lan966x: Add lan966x SoC clock driver")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Horatiu Vultur <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Nicolas Ferre <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
-rw-r--r-- | drivers/clk/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index ad4256d54361..d4d67fbae869 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -231,6 +231,8 @@ config COMMON_CLK_GEMINI config COMMON_CLK_LAN966X bool "Generic Clock Controller driver for LAN966X SoC" + depends on HAS_IOMEM + depends on OF help This driver provides support for Generic Clock Controller(GCK) on LAN966X SoC. GCK generates and supplies clock to various peripherals |