watchdog: ebc-c384_wdt: drop warning after calling watchdog_init_timeout
The core will print out details now. Reviewed-by: Guenter Roeck <linux@roeck-us.net> Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com> 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:
parent
c7d30d42ff
commit
cccbf8baa1
|
@ -117,10 +117,7 @@ static int ebc_c384_wdt_probe(struct device *dev, unsigned int id)
|
|||
wdd->max_timeout = WATCHDOG_MAX_TIMEOUT;
|
||||
|
||||
watchdog_set_nowayout(wdd, nowayout);
|
||||
|
||||
if (watchdog_init_timeout(wdd, timeout, dev))
|
||||
dev_warn(dev, "Invalid timeout (%u seconds), using default (%u seconds)\n",
|
||||
timeout, WATCHDOG_TIMEOUT);
|
||||
watchdog_init_timeout(wdd, timeout, dev);
|
||||
|
||||
return devm_watchdog_register_device(dev, wdd);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue