linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] rtc: ds1374: fix RTC_DRV_DS1374_WDT dependencies
@ 2020-07-20  7:52 Alexandre Belloni
  2020-07-20  7:52 ` [PATCH 2/2] rtc: ds1374: remove unused define Alexandre Belloni
  2020-07-21  2:39 ` [PATCH 1/2] rtc: ds1374: fix RTC_DRV_DS1374_WDT dependencies Randy Dunlap
  0 siblings, 2 replies; 3+ messages in thread
From: Alexandre Belloni @ 2020-07-20  7:52 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni; +Cc: Randy Dunlap, linux-rtc, linux-kernel

It is not enough to select WATCHDOG_CORE, the watchdog part of the driver
now also depends on WATCHDOG. This is currently the best we can do because
alarm support and watchdog support are mutually exclusive.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index c25d51f35f0c..2753e0f54cc3 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -281,8 +281,8 @@ config RTC_DRV_DS1374
 
 config RTC_DRV_DS1374_WDT
 	bool "Dallas/Maxim DS1374 watchdog timer"
-	depends on RTC_DRV_DS1374
-	select WATCHDOG_CORE if WATCHDOG
+	depends on RTC_DRV_DS1374 && WATCHDOG
+	select WATCHDOG_CORE
 	help
 	  If you say Y here you will get support for the
 	  watchdog timer in the Dallas Semiconductor DS1374
-- 
2.26.2


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

end of thread, other threads:[~2020-07-21  2:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20  7:52 [PATCH 1/2] rtc: ds1374: fix RTC_DRV_DS1374_WDT dependencies Alexandre Belloni
2020-07-20  7:52 ` [PATCH 2/2] rtc: ds1374: remove unused define Alexandre Belloni
2020-07-21  2:39 ` [PATCH 1/2] rtc: ds1374: fix RTC_DRV_DS1374_WDT dependencies Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).