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

index d9626ef9b9aedefd466ee65c7ef009112dd815ee..21dcc7765688a3ceea01315fd0f9586d1ac2956e 100644 (file)
@@ -165,10 +165,8 @@ static int ftwdt010_wdt_probe(struct platform_device *pdev)
        }
 
        ret = devm_watchdog_register_device(dev, &gwdt->wdd);
-       if (ret) {
-               dev_err(dev, "failed to register watchdog\n");
+       if (ret)
                return ret;
-       }
 
        /* Set up platform driver data */
        platform_set_drvdata(pdev, gwdt);