linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] rtc: pcf2127: Fix build error without CONFIG_WATCHDOG_CORE
@ 2019-08-23 12:45 YueHaibing
  2019-08-23 13:38 ` Guenter Roeck
  2019-08-23 14:05 ` Alexandre Belloni
  0 siblings, 2 replies; 9+ messages in thread
From: YueHaibing @ 2019-08-23 12:45 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, bruno.thomsen, linux
  Cc: linux-rtc, linux-kernel, YueHaibing

If WATCHDOG_CORE is not set, build fails:

drivers/rtc/rtc-pcf2127.o: In function `pcf2127_probe.isra.6':
drivers/rtc/rtc-pcf2127.c:478: undefined reference to `devm_watchdog_register_device'

Add WATCHDOG_CORE Kconfig dependency to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: bbc597561ce1 ("rtc: pcf2127: add watchdog feature support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 25af63d..9dce7dc 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -886,6 +886,8 @@ config RTC_DRV_DS3232_HWMON
 config RTC_DRV_PCF2127
 	tristate "NXP PCF2127"
 	depends on RTC_I2C_AND_SPI
+	depends on WATCHDOG
+	select WATCHDOG_CORE
 	help
 	  If you say yes here you get support for the NXP PCF2127/29 RTC
 	  chips with integrated quartz crystal for industrial applications.
-- 
2.7.4



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

end of thread, other threads:[~2019-08-29 14:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-23 12:45 [PATCH -next] rtc: pcf2127: Fix build error without CONFIG_WATCHDOG_CORE YueHaibing
2019-08-23 13:38 ` Guenter Roeck
2019-08-23 14:05 ` Alexandre Belloni
2019-08-26  8:12   ` Yuehaibing
2019-08-26 13:20     ` Guenter Roeck
2019-08-26 18:13       ` Bruno Thomsen
2019-08-26 18:46         ` Guenter Roeck
2019-08-28 17:18   ` Randy Dunlap
2019-08-29 14:04     ` Bruno Thomsen

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).