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

index 5ecdd880f0b74977678edd316c1eefe943e0c017..41715d68d9e970f4dcd3e592c087deea27155f08 100644 (file)
@@ -221,10 +221,8 @@ static int pic32_wdt_drv_probe(struct platform_device *pdev)
        watchdog_set_drvdata(wdd, wdt);
 
        ret = devm_watchdog_register_device(dev, wdd);
-       if (ret) {
-               dev_err(dev, "watchdog register failed, err %d\n", ret);
+       if (ret)
                return ret;
-       }
 
        platform_set_drvdata(pdev, wdd);