]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
watchdog: sl28cpld_wdt: don't print out if registering watchdog fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 4 Oct 2024 20:03:12 +0000 (22:03 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2024 09:04:37 +0000 (10:04 +0100)
The core will do this already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241004200314.5459-10-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/sl28cpld_wdt.c

index 9ce456f09f7361784867839231d79509534a01e5..8630c29818f2e19baee49e1dc87261a02634b002 100644 (file)
@@ -198,10 +198,8 @@ static int sl28cpld_wdt_probe(struct platform_device *pdev)
        }
 
        ret = devm_watchdog_register_device(&pdev->dev, wdd);
-       if (ret < 0) {
-               dev_err(&pdev->dev, "failed to register watchdog device\n");
+       if (ret < 0)
                return ret;
-       }
 
        dev_info(&pdev->dev, "initial timeout %d sec%s\n",
                 wdd->timeout, nowayout ? ", nowayout" : "");