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

index 918266b..565dbc1 100644 (file)
@@ -235,9 +235,7 @@ static int rwdt_probe(struct platform_device *pdev)
        watchdog_stop_on_unregister(&priv->wdev);
 
        /* This overrides the default timeout only if DT configuration was found */
-       ret = watchdog_init_timeout(&priv->wdev, 0, &pdev->dev);
-       if (ret)
-               dev_warn(&pdev->dev, "Specified timeout value invalid, using default\n");
+       watchdog_init_timeout(&priv->wdev, 0, &pdev->dev);
 
        ret = watchdog_register_device(&priv->wdev);
        if (ret < 0)