summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-18 23:27:53 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 15:13:15 +0200
commit199801cd7a50b14b15c5b87528fd5e86dc81404f (patch)
tree473335a7df305f8d55a39b780e3f271a78504a9b /drivers/watchdog
parentd41e3f4ee5849c2d4f2467863d08e276b7a8e70b (diff)
downloadlinux-0-day-199801cd7a50b14b15c5b87528fd5e86dc81404f.tar.gz
linux-0-day-199801cd7a50b14b15c5b87528fd5e86dc81404f.tar.xz
watchdog: sp805_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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/sp805_wdt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c
index 072986d461b76..53e04926a7b2d 100644
--- a/drivers/watchdog/sp805_wdt.c
+++ b/drivers/watchdog/sp805_wdt.c
@@ -288,11 +288,8 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
}
ret = watchdog_register_device(&wdt->wdd);
- if (ret) {
- dev_err(&adev->dev, "watchdog_register_device() failed: %d\n",
- ret);
+ if (ret)
goto err;
- }
amba_set_drvdata(adev, wdt);
dev_info(&adev->dev, "registration successful\n");