Skip to content

Commit 39885f2

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: sl28cpld_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: 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>
1 parent 74ccee5 commit 39885f2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/watchdog/sl28cpld_wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ static int sl28cpld_wdt_probe(struct platform_device *pdev)
198198
}
199199

200200
ret = devm_watchdog_register_device(&pdev->dev, wdd);
201-
if (ret < 0) {
202-
dev_err(&pdev->dev, "failed to register watchdog device\n");
201+
if (ret < 0)
203202
return ret;
204-
}
205203

206204
dev_info(&pdev->dev, "initial timeout %d sec%s\n",
207205
wdd->timeout, nowayout ? ", nowayout" : "");

0 commit comments

Comments
 (0)