From: Wolfram Sang Date: Sat, 18 May 2019 21:27:46 +0000 (+0200) Subject: watchdog: pic32-wdt: drop warning after registering device X-Git-Tag: v5.4-rc1~522^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90984aa137a1f1eb5c52eb8aaa63c0203ff12572;p=platform%2Fkernel%2Flinux-rpi.git watchdog: pic32-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/pic32-wdt.c b/drivers/watchdog/pic32-wdt.c index 5ecdd880f0b7..41715d68d9e9 100644 --- a/drivers/watchdog/pic32-wdt.c +++ b/drivers/watchdog/pic32-wdt.c @@ -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);