]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
watchdog: it87_wdt: don't print out if registering watchdog fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 4 Oct 2024 20:03:08 +0000 (22:03 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2024 09:04:35 +0000 (10:04 +0100)
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-6-wsa+renesas@sang-engineering.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/it87_wdt.c

index 3e8c15138eddadf5ff880788bad8dd1ebc3e483a..676cd134e6778622f9e85e5a6dbbc7ccb271ce1a 100644 (file)
@@ -349,10 +349,8 @@ static int __init it87_wdt_init(void)
 
        watchdog_stop_on_reboot(&wdt_dev);
        rc = watchdog_register_device(&wdt_dev);
-       if (rc) {
-               pr_err("Cannot register watchdog device (err=%d)\n", rc);
+       if (rc)
                return rc;
-       }
 
        pr_info("Chip IT%04x revision %d initialized. timeout=%d sec (nowayout=%d testmode=%d)\n",
                chip_type, chip_rev, timeout, nowayout, testmode);