summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rtc/Kconfig1
-rw-r--r--drivers/rtc/rtc-pcf2127.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 758f7a417470..da0aceb45095 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -886,6 +886,7 @@ config RTC_DRV_DS3232_HWMON
886config RTC_DRV_PCF2127 886config RTC_DRV_PCF2127
887 tristate "NXP PCF2127" 887 tristate "NXP PCF2127"
888 depends on RTC_I2C_AND_SPI 888 depends on RTC_I2C_AND_SPI
889 select WATCHDOG_CORE if WATCHDOG
889 help 890 help
890 If you say yes here you get support for the NXP PCF2127/29 RTC 891 If you say yes here you get support for the NXP PCF2127/29 RTC
891 chips with integrated quartz crystal for industrial applications. 892 chips with integrated quartz crystal for industrial applications.
diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c
index 3ec87d320766..02b069caffd5 100644
--- a/drivers/rtc/rtc-pcf2127.c
+++ b/drivers/rtc/rtc-pcf2127.c
@@ -475,9 +475,11 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap,
475 return ret; 475 return ret;
476 } 476 }
477 477
478#ifdef CONFIG_WATCHDOG
478 ret = devm_watchdog_register_device(dev, &pcf2127->wdd); 479 ret = devm_watchdog_register_device(dev, &pcf2127->wdd);
479 if (ret) 480 if (ret)
480 return ret; 481 return ret;
482#endif /* CONFIG_WATCHDOG */
481 483
482 /* 484 /*
483 * Disable battery low/switch-over timestamp and interrupts. 485 * Disable battery low/switch-over timestamp and interrupts.