mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +00:00
watchdog: octeon-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-7-wsa+renesas@sang-engineering.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
committed by
Wim Van Sebroeck
parent
ebc75304f0
commit
8904da6909
@@ -559,10 +559,8 @@ static int __init octeon_wdt_init(void)
|
||||
watchdog_set_nowayout(&octeon_wdt, nowayout);
|
||||
|
||||
ret = watchdog_register_device(&octeon_wdt);
|
||||
if (ret) {
|
||||
pr_err("watchdog_register_device() failed: %d\n", ret);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (disable) {
|
||||
pr_notice("disabled\n");
|
||||
|
||||
Reference in New Issue
Block a user