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 c8c2b8a88fc2d4d99c19ef8862f2ca8abf96715c..bb3d075c06333d613f24ea97fc0bd1439965d1f6 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);