summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/bcm7038_wdt.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-18 23:27:20 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 15:13:02 +0200
commitf54298950eab8d4b931eb4871bd37bc274f85d98 (patch)
treea3e50714973e228e05aa48dbedff6f96f28a8da6 /drivers/watchdog/bcm7038_wdt.c
parentd5f3e24f22231991615421610d72d037423bba27 (diff)
downloadlinux-stable-f54298950eab8d4b931eb4871bd37bc274f85d98.tar.gz
linux-stable-f54298950eab8d4b931eb4871bd37bc274f85d98.tar.bz2
linux-stable-f54298950eab8d4b931eb4871bd37bc274f85d98.zip
watchdog: bcm7038_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/bcm7038_wdt.c')
-rw-r--r--drivers/watchdog/bcm7038_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/bcm7038_wdt.c b/drivers/watchdog/bcm7038_wdt.c
index d3d88f6703d7..979caa18d3c8 100644
--- a/drivers/watchdog/bcm7038_wdt.c
+++ b/drivers/watchdog/bcm7038_wdt.c
@@ -159,10 +159,8 @@ static int bcm7038_wdt_probe(struct platform_device *pdev)
watchdog_stop_on_reboot(&wdt->wdd);
watchdog_stop_on_unregister(&wdt->wdd);
err = devm_watchdog_register_device(dev, &wdt->wdd);
- if (err) {
- dev_err(dev, "Failed to register watchdog device\n");
+ if (err)
return err;
- }
dev_info(dev, "Registered BCM7038 Watchdog\n");