Skip to content

Commit 7022274

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: gxp-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-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>
1 parent c9e8ba3 commit 7022274

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/watchdog/gxp-wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,8 @@ static int gxp_wdt_probe(struct platform_device *pdev)
151151

152152
watchdog_stop_on_reboot(&drvdata->wdd);
153153
err = devm_watchdog_register_device(dev, &drvdata->wdd);
154-
if (err) {
155-
dev_err(dev, "Failed to register watchdog device");
154+
if (err)
156155
return err;
157-
}
158156

159157
dev_info(dev, "HPE GXP watchdog timer");
160158

0 commit comments

Comments
 (0)