]> www.infradead.org Git - users/hch/misc.git/commitdiff
watchdog: gxp-wdt: don't print out if registering watchdog fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 4 Oct 2024 20:03:06 +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-4-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/gxp-wdt.c

index 2fd85be882786418125172732a2bf0507f67ff2e..f2c236160266210239bf24339821c4e9f11d420c 100644 (file)
@@ -151,10 +151,8 @@ static int gxp_wdt_probe(struct platform_device *pdev)
 
        watchdog_stop_on_reboot(&drvdata->wdd);
        err = devm_watchdog_register_device(dev, &drvdata->wdd);
-       if (err) {
-               dev_err(dev, "Failed to register watchdog device");
+       if (err)
                return err;
-       }
 
        dev_info(dev, "HPE GXP watchdog timer");