watchdog: st_lpc_wdt: drop warning after calling watchdog_init_timeout

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>
This commit is contained in:
Wolfram Sang 2019-04-19 20:15:58 +02:00 committed by Wim Van Sebroeck
parent 2d505e3e40
commit b4214185b9
1 changed files with 1 additions and 3 deletions

View 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) {