]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
watchdog: iTCO_wdt: don't print out if registering watchdog fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 4 Oct 2024 20:03:07 +0000 (22:03 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2024 09:04:34 +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-5-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/iTCO_wdt.c

index f01ed38aba67517d28321c7159e4e3bbb2896f6c..7672582fa407649285e78c26d46b188b8f24e0c4 100644 (file)
@@ -609,10 +609,8 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
        watchdog_stop_on_reboot(&p->wddev);
        watchdog_stop_on_unregister(&p->wddev);
        ret = devm_watchdog_register_device(dev, &p->wddev);
-       if (ret != 0) {
-               dev_err(dev, "cannot register watchdog device (err=%d)\n", ret);
+       if (ret != 0)
                return ret;
-       }
 
        dev_info(dev, "initialized. heartbeat=%d sec (nowayout=%d)\n",
                heartbeat, nowayout);