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 <wsa+renesas@sang-engineering.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20241004200314.5459-8-wsa+renesas@sang-engineering.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 8904da6 commit 844f8df

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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)