From: Alexandre Belloni Date: Mon, 20 Jul 2020 07:52:49 +0000 (+0200) Subject: rtc: ds1374: fix RTC_DRV_DS1374_WDT dependencies X-Git-Tag: v5.10.7~1854^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7f3be4c94d3686ec67b7e7b4fb47e4c225a2789;p=platform%2Fkernel%2Flinux-rpi.git rtc: ds1374: fix RTC_DRV_DS1374_WDT dependencies 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 Signed-off-by: Alexandre Belloni Acked-by: Randy Dunlap # build-tested Link: https://lore.kernel.org/r/20200720075250.1019172-1-alexandre.belloni@bootlin.com --- diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index c25d51f..2753e0f 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