summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-18 23:27:24 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 15:13:04 +0200
commit04892d893b1901503820897cc46839660bf1a6b0 (patch)
tree3fdda8e9a44bc3465ac802f05551a35cb9afb8e0
parentwatchdog: da9052_wdt: drop warning after registering device (diff)
downloadlinux-04892d893b1901503820897cc46839660bf1a6b0.tar.xz
linux-04892d893b1901503820897cc46839660bf1a6b0.zip
watchdog: da9062_wdt: drop warning after registering device
The core will print out details now. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
-rw-r--r--drivers/watchdog/da9062_wdt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/watchdog/da9062_wdt.c b/drivers/watchdog/da9062_wdt.c
index aac749cfaccb..e149e66a6ea9 100644
--- a/drivers/watchdog/da9062_wdt.c
+++ b/drivers/watchdog/da9062_wdt.c
@@ -214,11 +214,8 @@ static int da9062_wdt_probe(struct platform_device *pdev)
watchdog_set_drvdata(&wdt->wdtdev, wdt);
ret = devm_watchdog_register_device(dev, &wdt->wdtdev);
- if (ret < 0) {
- dev_err(wdt->hw->dev,
- "watchdog registration failed (%d)\n", ret);
+ if (ret < 0)
return ret;
- }
return da9062_wdt_ping(&wdt->wdtdev);
}