public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: versatile: Make depend on OF when COMPILE_TEST
@ 2015-10-25 22:41 Javier Martinez Canillas
  2015-10-26  9:02 ` Geert Uytterhoeven
  2015-10-26 18:51 ` Stephen Boyd
  0 siblings, 2 replies; 5+ messages in thread
From: Javier Martinez Canillas @ 2015-10-25 22:41 UTC (permalink / raw)
  To: linux-kernel
  Cc: Javier Martinez Canillas, Michael Turquette, Stephen Boyd,
	Scott Branden, linux-clk

Commit 4a7748c3d641 ("clk: Allow drivers to build if COMPILE_TEST is
enabled") allowed clk drives to be compile tested on other archs but
the COMMON_CLK_VERSATILE was only enabled on platforms that already
selected OF support so the drivers assume it will always be enabled.

So, restrict compile test for these drivers only if OF is enabled.

Fixes: 4a7748c3d641 ("clk: Allow drivers to build if COMPILE_TEST is enabled")
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>

---

 drivers/clk/versatile/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/versatile/Kconfig b/drivers/clk/versatile/Kconfig
index fc50b6264bed..e85863cf145f 100644
--- a/drivers/clk/versatile/Kconfig
+++ b/drivers/clk/versatile/Kconfig
@@ -1,6 +1,6 @@
 config COMMON_CLK_VERSATILE
 	bool "Clock driver for ARM Reference designs"
-	depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 || COMPILE_TEST
+	depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 || (COMPILE_TEST && OF)
 	---help---
           Supports clocking on ARM Reference designs:
 	  - Integrator/AP and Integrator/CP
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-26 22:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 22:41 [PATCH] clk: versatile: Make depend on OF when COMPILE_TEST Javier Martinez Canillas
2015-10-26  9:02 ` Geert Uytterhoeven
2015-10-26 14:44   ` Javier Martinez Canillas
2015-10-26 18:51 ` Stephen Boyd
2015-10-26 22:04   ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox