Commit aa091a6a authored by Horatiu Vultur's avatar Horatiu Vultur Committed by Stephen Boyd

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: 54104ee0 ("clk: lan966x: Add lan966x SoC clock driver")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220219141536.460812-1-horatiu.vultur@microchip.comReviewed-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 6e6fec3f
...@@ -231,6 +231,8 @@ config COMMON_CLK_GEMINI ...@@ -231,6 +231,8 @@ config COMMON_CLK_GEMINI
config COMMON_CLK_LAN966X config COMMON_CLK_LAN966X
bool "Generic Clock Controller driver for LAN966X SoC" bool "Generic Clock Controller driver for LAN966X SoC"
depends on HAS_IOMEM
depends on OF
help help
This driver provides support for Generic Clock Controller(GCK) on This driver provides support for Generic Clock Controller(GCK) on
LAN966X SoC. GCK generates and supplies clock to various peripherals LAN966X SoC. GCK generates and supplies clock to various peripherals
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment