watchdog: jz4740_wdt: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:27:34 +0000 (23:27 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 8 Jul 2019 13:13:08 +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/jz4740_wdt.c

index 313358b2e0b10ab80442c0dbc9943fcb18b5b48f..03b187c97f63e1402e2f91b749120d3e64433f56 100644 (file)
@@ -187,11 +187,7 @@ static int jz4740_wdt_probe(struct platform_device *pdev)
                return PTR_ERR(drvdata->rtc_clk);
        }
 
-       ret = devm_watchdog_register_device(dev, &drvdata->wdt);
-       if (ret < 0)
-               return ret;
-
-       return 0;
+       return devm_watchdog_register_device(dev, &drvdata->wdt);
 }
 
 static struct platform_driver jz4740_wdt_driver = {