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

index 072986d461b765df24c06a8ab09d3f6e2857c48d..53e04926a7b2d3ffb6748278550cbd845a34f3ea 100644 (file)
@@ -288,11 +288,8 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
        }
 
        ret = watchdog_register_device(&wdt->wdd);
-       if (ret) {
-               dev_err(&adev->dev, "watchdog_register_device() failed: %d\n",
-                               ret);
+       if (ret)
                goto err;
-       }
        amba_set_drvdata(adev, wdt);
 
        dev_info(&adev->dev, "registration successful\n");