]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/rtc/rtc-pcf2127.c
rtc: pcf2127: only use watchdog when explicitly available
[mirror_ubuntu-hirsute-kernel.git] / drivers / rtc / rtc-pcf2127.c
index fd46860152e15f0ed6f8ce07b2b05f814c9ba8d1..f0a6861ff3aef3e3d2984e3e76bb82327d408683 100644 (file)
@@ -336,7 +336,8 @@ static int pcf2127_watchdog_init(struct device *dev, struct pcf2127 *pcf2127)
        u32 wdd_timeout;
        int ret;
 
-       if (!IS_ENABLED(CONFIG_WATCHDOG))
+       if (!IS_ENABLED(CONFIG_WATCHDOG) ||
+           !device_property_read_bool(dev, "reset-source"))
                return 0;
 
        pcf2127->wdd.parent = dev;