]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
watchdog: imx_sc_wdt: drop warning after calling watchdog_init_timeout
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 19 Apr 2019 18:15:53 +0000 (20:15 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:06:39 +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/imx_sc_wdt.c

index d154f66e659a9c454760dcd41885fe57529b3bbb..49848b66186c1091cfc9f7e913dd6440a8c1f81d 100644 (file)
@@ -118,10 +118,7 @@ static int imx_sc_wdt_probe(struct platform_device *pdev)
        imx_sc_wdd->parent = dev;
        imx_sc_wdd->timeout = DEFAULT_TIMEOUT;
 
-       ret = watchdog_init_timeout(imx_sc_wdd, 0, dev);
-       if (ret)
-               dev_warn(dev, "Failed to set timeout value, using default\n");
-
+       watchdog_init_timeout(imx_sc_wdd, 0, dev);
        watchdog_stop_on_reboot(imx_sc_wdd);
        watchdog_stop_on_unregister(imx_sc_wdd);