watchdog: st_lpc_wdt: drop warning after calling watchdog_init_timeout
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 19 Apr 2019 18:15:58 +0000 (20:15 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:08:32 +0000 (21:08 +0200)
The core will print out details now.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
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/st_lpc_wdt.c

index 9a5ed95..7a90184 100644 (file)
@@ -224,10 +224,8 @@ static int st_wdog_probe(struct platform_device *pdev)
 
        /* Init Watchdog timeout with value in DT */
        ret = watchdog_init_timeout(&st_wdog_dev, 0, dev);
-       if (ret) {
-               dev_err(dev, "Unable to initialise watchdog timeout\n");
+       if (ret)
                return ret;
-       }
 
        ret = devm_watchdog_register_device(dev, &st_wdog_dev);
        if (ret) {