]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
watchdog: rti_wdt: don't print out if registering watchdog fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 4 Oct 2024 20:03:10 +0000 (22:03 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2024 09:04:36 +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-8-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/rti_wdt.c

index 4895a69015a8ea3579675af59f23bec69669f5ab..e319fa0787c27a116e28de09b6a88bf15b6a8fe2 100644 (file)
@@ -336,10 +336,8 @@ static int rti_wdt_probe(struct platform_device *pdev)
        watchdog_init_timeout(wdd, heartbeat, dev);
 
        ret = watchdog_register_device(wdd);
-       if (ret) {
-               dev_err(dev, "cannot register watchdog device\n");
+       if (ret)
                goto err_iomap;
-       }
 
        if (last_ping)
                watchdog_set_last_hw_keepalive(wdd, last_ping);