Skip to content

Commit 844f8df

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: rti_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 8904da6 commit 844f8df

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/watchdog/rti_wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,8 @@ static int rti_wdt_probe(struct platform_device *pdev)
336336
watchdog_init_timeout(wdd, heartbeat, dev);
337337

338338
ret = watchdog_register_device(wdd);
339-
if (ret) {
340-
dev_err(dev, "cannot register watchdog device\n");
339+
if (ret)
341340
goto err_iomap;
342-
}
343341

344342
if (last_ping)
345343
watchdog_set_last_hw_keepalive(wdd, last_ping);

0 commit comments

Comments
 (0)