summaryrefslogtreecommitdiff
path: root/drivers/watchdog/cadence_wdt.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-04-19 20:15:48 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-05-05 21:04:59 +0200
commit5429e3a5790ca387848167610e6184e1a9d06c26 (patch)
tree8ab2e09afef44cdaca2965431847fc4fbf64a1cb /drivers/watchdog/cadence_wdt.c
parente907972be3816d741f08e82f08c4e88bc807ca36 (diff)
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/cadence_wdt.c')
-rw-r--r--drivers/watchdog/cadence_wdt.c4
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);