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

index aac749cfaccbbf3bf4dba71445e03e8a2067da92..e149e66a6ea9f2ef3c30ed397ac8f9cf2b477ce3 100644 (file)
@@ -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);
 }