summaryrefslogtreecommitdiff
path: root/drivers/watchdog/stm32_iwdg.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-19 00:27:56 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 16:13:16 +0300
commit71777442df8f63954d6f2029998afb565d307bc2 (patch)
treee4bfaf3ec8a5cab0bbe2c194fbe96f9f2b3ca5f5 /drivers/watchdog/stm32_iwdg.c
parent7283b217aebda61d4ecfad799e2353fa5ce91e2e (diff)
downloadlinux-71777442df8f63954d6f2029998afb565d307bc2.tar.xz
watchdog: stm32_iwdg: drop warning after registering device
The core will print out details now. 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/stm32_iwdg.c')
-rw-r--r--drivers/watchdog/stm32_iwdg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c
index d569a3634d9b..a3a329011a06 100644
--- a/drivers/watchdog/stm32_iwdg.c
+++ b/drivers/watchdog/stm32_iwdg.c
@@ -263,10 +263,8 @@ static int stm32_iwdg_probe(struct platform_device *pdev)
watchdog_init_timeout(wdd, 0, dev);
ret = devm_watchdog_register_device(dev, wdd);
- if (ret) {
- dev_err(dev, "failed to register watchdog device\n");
+ if (ret)
return ret;
- }
platform_set_drvdata(pdev, wdt);