diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-04-19 20:15:48 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2019-05-05 21:04:59 +0200 |
commit | 5429e3a5790ca387848167610e6184e1a9d06c26 (patch) | |
tree | 8ab2e09afef44cdaca2965431847fc4fbf64a1cb /drivers/watchdog | |
parent | watchdog: add error messages when initializing timeout fails (diff) | |
download | linux-5429e3a5790ca387848167610e6184e1a9d06c26.tar.xz linux-5429e3a5790ca387848167610e6184e1a9d06c26.zip |
watchdog: cadence_wdt: drop warning after calling watchdog_init_timeout
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/cadence_wdt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/cadence_wdt.c b/drivers/watchdog/cadence_wdt.c index c5051907df00..e6eaeaf3dfb1 100644 --- a/drivers/watchdog/cadence_wdt.c +++ b/drivers/watchdog/cadence_wdt.c @@ -329,10 +329,8 @@ static int cdns_wdt_probe(struct platform_device *pdev) cdns_wdt_device->parent = dev; ret = watchdog_init_timeout(cdns_wdt_device, wdt_timeout, dev); - if (ret) { - dev_err(dev, "unable to set timeout value\n"); + if (ret) return ret; - } watchdog_set_nowayout(cdns_wdt_device, nowayout); watchdog_stop_on_reboot(cdns_wdt_device); |