From: Wolfram Sang Date: Sat, 18 May 2019 21:27:53 +0000 (+0200) Subject: watchdog: sp805_wdt: drop warning after registering device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=199801cd7a50b14b15c5b87528fd5e86dc81404f;p=openwrt%2Fstaging%2Fblogic.git watchdog: sp805_wdt: drop warning after registering device The core will print out details now. Signed-off-by: Wolfram Sang Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 072986d461b7..53e04926a7b2 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c @@ -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");