Message ID | 20200827091441.12972-2-qiang.zhao@nxp.com |
---|---|
State | Changes Requested |
Headers | show |
Series | [1/3] dt-bindings: rtc-2127: Add bindings for nxp,rtc-2127.txt | expand |
diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c index 02b069c..38d30e2 100644 --- a/drivers/rtc/rtc-pcf2127.c +++ b/drivers/rtc/rtc-pcf2127.c @@ -476,9 +476,11 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap, } #ifdef CONFIG_WATCHDOG - ret = devm_watchdog_register_device(dev, &pcf2127->wdd); - if (ret) - return ret; + if (!of_property_read_bool(dev->of_node, "no-watchdog")) { + ret = devm_watchdog_register_device(dev, &pcf2127->wdd); + if (ret) + return ret; + } #endif /* CONFIG_WATCHDOG */ /*