Skip to content

Commit aa091a6

Browse files
HoratiuVulturbebarino
authored andcommitted
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: 54104ee ("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]>
1 parent 6e6fec3 commit aa091a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ config COMMON_CLK_GEMINI
231231

232232
config COMMON_CLK_LAN966X
233233
bool "Generic Clock Controller driver for LAN966X SoC"
234+
depends on HAS_IOMEM
235+
depends on OF
234236
help
235237
This driver provides support for Generic Clock Controller(GCK) on
236238
LAN966X SoC. GCK generates and supplies clock to various peripherals

0 commit comments

Comments
 (0)