Skip to contentSkip to conversation

clk: Specify IOMEM dependency for HSDK pll driver

PATCH Applied David Gow 2 participants 2 messages Jun 30, 2020 – Jul 11, 2020 Common clk

lore
Share & tools
lore

David Gow

author
#0 lore raw

PATCH 1/1 clk: Specify IOMEM dependency for HSDK pll driver

The HSDK pll driver uses the devm_ioremap_resource function, but does not specify a dependency on IOMEM in Kconfig. This causes a build failure on architectures without IOMEM, for example, UML (notably with make allyesconfig).

Fix this by making CONFIG_CLK_HSDK depend on CONFIG_IOMEM.

---
 drivers/clk/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/Kconfig +1 -0
index 69934c0c3dd8..326f91b2dda9 100644
@@ -50,6 +50,7 @@ source "drivers/clk/versatile/Kconfig"
 config CLK_HSDK
 	bool "PLL Driver for HSDK platform"
 	depends on OF || COMPILE_TEST
+	depends on IOMEM
 	help
 	  This driver supports the HSDK core, system, ddr, tunnel and hdmi PLLs
 	  control.
Signature · 1 line
2.27.0.212.ge8ba1cc988-goog
maintainer Applied
#1 lore raw

Quoting David Gow (2020-06-29 21:32:14)

Quoted 9 lines

The HSDK pll driver uses the devm_ioremap_resource function, but does not specify a dependency on IOMEM in Kconfig. This causes a build failure on architectures without IOMEM, for example, UML (notably with make allyesconfig).

Fix this by making CONFIG_CLK_HSDK depend on CONFIG_IOMEM.

---

Applied to clk-fixes