[PATCH v3 6/6] watchdog: w83627hf_wdt: Report all initialization failures in probe
From: Paul Louvel
Date: Sun Oct 04 2026 - 08:16:03 EST
The driver currently logs an error only if the chip initialization
fails. Extend the error reporting to all failure paths in probe to
improve diagnostics.
Signed-off-by: Paul Louvel <paul.louvel@xxxxxxxxxxx>
---
drivers/watchdog/w83627hf_wdt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c
index 1aba9efa27fe..bba7882b254e 100644
--- a/drivers/watchdog/w83627hf_wdt.c
+++ b/drivers/watchdog/w83627hf_wdt.c
@@ -549,12 +549,12 @@ static int wdt_probe(struct platform_device *pdev)
}
if (ret)
- return ret;
+ return dev_err_probe(dev, ret, "failed to set watchdog timeout\n");
}
ret = devm_watchdog_register_device(dev, wdd);
if (ret)
- return ret;
+ return dev_err_probe(dev, ret, "failed to register watchdog\n");
dev_info(dev, "initialized. timeout=%d sec (nowayout=%d)\n",
wdd->timeout, nowayout);
--
2.55.0