From: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: <linux-kernel@vger.kernel.org>,
Baolin Wang <baolin.wang@spreadtrum.com>,
Orson Zhai <orson.zhai@spreadtrum.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Subject: [PATCH] clocksource/drivers/sprd: Fix Kconfig dependency
Date: Thu, 3 May 2018 20:27:32 +0800 [thread overview]
Message-ID: <1525350452-14433-1-git-send-email-chunyan.zhang@spreadtrum.com> (raw)
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
next reply other threads:[~2018-05-03 13:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-03 12:27 Chunyan Zhang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1525350452-14433-1-git-send-email-chunyan.zhang@spreadtrum.com \
--to=chunyan.zhang@spreadtrum.com \
--cc=baolin.wang@spreadtrum.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=orson.zhai@spreadtrum.com \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®