watchdog: loongson1_wdt: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:27:35 +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/loongson1_wdt.c

index c8c2b8a..bb3d075 100644 (file)
@@ -132,10 +132,8 @@ static int ls1x_wdt_probe(struct platform_device *pdev)
        watchdog_set_drvdata(ls1x_wdt, drvdata);
 
        err = devm_watchdog_register_device(dev, &drvdata->wdt);
-       if (err) {
-               dev_err(dev, "failed to register watchdog device\n");
+       if (err)
                return err;
-       }
 
        platform_set_drvdata(pdev, drvdata);