]> Git Repo - J-linux.git/commitdiff
clk: lan966x: Fix linking error
authorHoratiu Vultur <[email protected]>
Sat, 19 Feb 2022 14:15:36 +0000 (15:15 +0100)
committerStephen Boyd <[email protected]>
Fri, 25 Feb 2022 00:53:24 +0000 (16:53 -0800)
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]>
drivers/clk/Kconfig

index ad4256d543613e545ef4e4fa9518e70536f3ada1..d4d67fbae8690b3f335216b7d3aefd01008b2599 100644 (file)
@@ -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
This page took 0.048891 seconds and 4 git commands to generate.