From: Horatiu Vultur Date: Sat, 19 Feb 2022 14:15:36 +0000 (+0100) Subject: clk: lan966x: Fix linking error X-Git-Tag: baikal/aarch64/sdk6.1~4535^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=8306496e10de3aebd092ce5b56029e2999799308;p=kernel.git 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 Signed-off-by: Horatiu Vultur Link: https://lore.kernel.org/r/20220219141536.460812-1-horatiu.vultur@microchip.com Reviewed-by: Nicolas Ferre Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index ad4256d543613..d4d67fbae8690 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