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

index 9d6c168..9c773c3 100644 (file)
@@ -220,10 +220,8 @@ static int npcm_wdt_probe(struct platform_device *pdev)
                return ret;
 
        ret = devm_watchdog_register_device(dev, &wdt->wdd);
-       if (ret) {
-               dev_err(dev, "failed to register watchdog\n");
+       if (ret)
                return ret;
-       }
 
        dev_info(dev, "NPCM watchdog driver enabled\n");