Skip to content

Commit fb2de4e

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: iTCO_wdt: don't print out if registering watchdog fails
The core will do this already. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 7022274 commit fb2de4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/watchdog/iTCO_wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,10 +609,8 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
609609
watchdog_stop_on_reboot(&p->wddev);
610610
watchdog_stop_on_unregister(&p->wddev);
611611
ret = devm_watchdog_register_device(dev, &p->wddev);
612-
if (ret != 0) {
613-
dev_err(dev, "cannot register watchdog device (err=%d)\n", ret);
612+
if (ret != 0)
614613
return ret;
615-
}
616614

617615
dev_info(dev, "initialized. heartbeat=%d sec (nowayout=%d)\n",
618616
heartbeat, nowayout);

0 commit comments

Comments
 (0)