summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2024-10-04 22:03:06 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2024-11-05 10:04:34 +0100
commit7022274d625935d99c2a5c8ac84ed4754229ce64 (patch)
tree0b8666ef847c5df8a3ed0adbef9efe177c9bf7cc /drivers/watchdog
parentc9e8ba37163a34929304d9c5f6392bd038d6cfe5 (diff)
downloadlinux-7022274d625935d99c2a5c8ac84ed4754229ce64.tar.gz
linux-7022274d625935d99c2a5c8ac84ed4754229ce64.tar.bz2
linux-7022274d625935d99c2a5c8ac84ed4754229ce64.zip
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/gxp-wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/gxp-wdt.c b/drivers/watchdog/gxp-wdt.c
index 2fd85be88278..f2c236160266 100644
--- a/drivers/watchdog/gxp-wdt.c
+++ b/drivers/watchdog/gxp-wdt.c
@@ -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");