watchdog: digicolor_wdt: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:27:26 +0000 (23:27 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 8 Jul 2019 13:13:05 +0000 (15:13 +0200)
The core will print out details now.

Signed-off-by: Wolfram Sang <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/digicolor_wdt.c

index 8af6e9a67d0defefe8fc49fe6d2ed68b3c92115e..33cda95bd2382f62fbf82a012e130682e6ced358 100644 (file)
@@ -141,13 +141,7 @@ static int dc_wdt_probe(struct platform_device *pdev)
        watchdog_set_restart_priority(&dc_wdt_wdd, 128);
        watchdog_init_timeout(&dc_wdt_wdd, timeout, dev);
        watchdog_stop_on_reboot(&dc_wdt_wdd);
-       ret = devm_watchdog_register_device(dev, &dc_wdt_wdd);
-       if (ret) {
-               dev_err(dev, "Failed to register watchdog device");
-               return ret;
-       }
-
-       return 0;
+       return devm_watchdog_register_device(dev, &dc_wdt_wdd);
 }
 
 static const struct of_device_id dc_wdt_of_match[] = {