watchdog: nic7018_wdt: drop warning after calling watchdog_init_timeout
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 19 Apr 2019 18:15:55 +0000 (20:15 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:06:40 +0000 (21:06 +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/nic7018_wdt.c

index dcd26568583762839390c0c558b7b21deb5ee63f..82843abe38f8b8c598bf07b17d686fa6a74fe9c8 100644 (file)
@@ -211,10 +211,7 @@ static int nic7018_probe(struct platform_device *pdev)
 
        watchdog_set_drvdata(wdd, wdt);
        watchdog_set_nowayout(wdd, nowayout);
-
-       ret = watchdog_init_timeout(wdd, timeout, dev);
-       if (ret)
-               dev_warn(dev, "unable to set timeout value, using default\n");
+       watchdog_init_timeout(wdd, timeout, dev);
 
        /* Unlock WDT register */
        outb(UNLOCK, wdt->io_base + WDT_REG_LOCK);