summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-19 00:27:45 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 16:13:12 +0300
commit888ca35d74cef6e66cd3c651eba3fca6d66147e5 (patch)
tree8729857a64cb4182cf07609d55ffd1e8cf38c911 /drivers/watchdog
parent0fa6cf71cdec0eaebd69cf25de3f14a9152106e5 (diff)
downloadlinux-888ca35d74cef6e66cd3c651eba3fca6d66147e5.tar.xz
watchdog: pic32-dmt: 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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/pic32-dmt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/pic32-dmt.c b/drivers/watchdog/pic32-dmt.c
index 4f2aca78f13a..f43062b3c4c8 100644
--- a/drivers/watchdog/pic32-dmt.c
+++ b/drivers/watchdog/pic32-dmt.c
@@ -212,10 +212,8 @@ static int pic32_dmt_probe(struct platform_device *pdev)
watchdog_set_drvdata(wdd, dmt);
ret = devm_watchdog_register_device(dev, wdd);
- if (ret) {
- dev_err(dev, "watchdog register failed, err %d\n", ret);
+ if (ret)
return ret;
- }
platform_set_drvdata(pdev, wdd);
return 0;