watchdog: bcm7038_wdt: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:27:20 +0000 (23:27 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 8 Jul 2019 13:13:02 +0000 (15:13 +0200)
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>
drivers/watchdog/bcm7038_wdt.c

index d3d88f6703d79ea8daaa685d8f10d5668c143aa1..979caa18d3c88f5393a66d39cca7f6e6db98b1c9 100644 (file)
@@ -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");