summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/st_lpc_wdt.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-04-19 20:15:58 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-05-05 21:08:32 +0200
commitb4214185b91b1ce33c2670e4576600dadccd8cf8 (patch)
tree816deaaa3dbbd1afdb07ef122b89d02b75475952 /drivers/watchdog/st_lpc_wdt.c
parentwatchdog: sp5100_tco: drop warning after calling watchdog_init_timeout (diff)
downloadlinux-b4214185b91b1ce33c2670e4576600dadccd8cf8.tar.xz
linux-b4214185b91b1ce33c2670e4576600dadccd8cf8.zip
watchdog: st_lpc_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/st_lpc_wdt.c')
-rw-r--r--drivers/watchdog/st_lpc_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/st_lpc_wdt.c b/drivers/watchdog/st_lpc_wdt.c
index 9a5ed95c3403..7a90184eb950 100644
--- a/drivers/watchdog/st_lpc_wdt.c
+++ b/drivers/watchdog/st_lpc_wdt.c
@@ -224,10 +224,8 @@ static int st_wdog_probe(struct platform_device *pdev)
/* Init Watchdog timeout with value in DT */
ret = watchdog_init_timeout(&st_wdog_dev, 0, dev);
- if (ret) {
- dev_err(dev, "Unable to initialise watchdog timeout\n");
+ if (ret)
return ret;
- }
ret = devm_watchdog_register_device(dev, &st_wdog_dev);
if (ret) {