All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clocksource/drivers/sprd: Fix Kconfig dependency
@ 2018-05-03 12:27 Chunyan Zhang
  2018-05-07  5:51 ` Daniel Lezcano
  0 siblings, 1 reply; 5+ messages in thread
From: Chunyan Zhang @ 2018-05-03 12:27 UTC (permalink / raw)
  To: Daniel Lezcano
  Cc: linux-kernel, Baolin Wang, Orson Zhai, Chunyan Zhang, Chunyan Zhang

SPRD arch doesn't select SPRD_TIMER, so this config would not
appear even if ARCH_SPRD is set and COMPILE_TEST is not.

Fix the Kconfig selection rule by letting the SPRD arch to select.

This patch also sets the default value of SPRD_TIMER with ARCH_SPRD,
but it still is selectable to users.

Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
---
 drivers/clocksource/Kconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 619b120..c89e4d6 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -468,8 +468,9 @@ config MTK_TIMER
 	  Support for Mediatek timer driver.
 
 config SPRD_TIMER
-	bool "Spreadtrum timer driver" if COMPILE_TEST
-	depends on HAS_IOMEM
+	bool "Spreadtrum timer driver"
+	depends on HAS_IOMEM && (ARCH_SPRD || COMPILE_TEST)
+	default ARCH_SPRD
 	select TIMER_OF
 	help
 	  Enables support for the Spreadtrum timer driver.
-- 
2.7.4

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

end of thread, other threads:[~2018-05-07  8:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 12:27 [PATCH] clocksource/drivers/sprd: Fix Kconfig dependency Chunyan Zhang
2018-05-07  5:51 ` Daniel Lezcano
2018-05-07  6:04   ` Chunyan Zhang
2018-05-07  7:49     ` Daniel Lezcano
2018-05-07  8:06       ` Chunyan Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.