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

index 9dc6d7f..c137ad2 100644 (file)
@@ -171,10 +171,8 @@ static int ts4800_wdt_probe(struct platform_device *pdev)
        ts4800_wdt_stop(wdd);
 
        ret = devm_watchdog_register_device(dev, wdd);
-       if (ret) {
-               dev_err(dev, "failed to register watchdog device\n");
+       if (ret)
                return ret;
-       }
 
        platform_set_drvdata(pdev, wdt);