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

index 68756a4..6f7c2bc 100644 (file)
@@ -250,10 +250,7 @@ static int stm32_iwdg_probe(struct platform_device *pdev)
 
        watchdog_set_drvdata(wdd, wdt);
        watchdog_set_nowayout(wdd, WATCHDOG_NOWAYOUT);
-
-       ret = watchdog_init_timeout(wdd, 0, dev);
-       if (ret)
-               dev_warn(dev, "unable to set timeout value, using default\n");
+       watchdog_init_timeout(wdd, 0, dev);
 
        ret = devm_watchdog_register_device(dev, wdd);
        if (ret) {