diff mbox series

clk: Specify IOMEM dependency for HSDK pll driver

Message ID 20200630043214.1080961-1-davidgow@google.com (mailing list archive)
State Accepted, archived
Headers show
Series clk: Specify IOMEM dependency for HSDK pll driver | expand

Commit Message

David Gow June 30, 2020, 4:32 a.m. UTC
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.

Signed-off-by: David Gow <davidgow@google.com>
---
 drivers/clk/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Stephen Boyd July 11, 2020, 4:28 p.m. UTC | #1
Quoting David Gow (2020-06-29 21:32:14)
> 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.
> 
> Signed-off-by: David Gow <davidgow@google.com>
> ---

Applied to clk-fixes
diff mbox series

Patch

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 69934c0c3dd8..326f91b2dda9 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -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.