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

index d9e03544aeae653f7de727477c0a2064eb7182aa..124b1c66dc29955daa6f2c8369e6092dbb014450 100644 (file)
@@ -221,10 +221,8 @@ static int pnx4008_wdt_probe(struct platform_device *pdev)
                set_bit(WDOG_HW_RUNNING, &pnx4008_wdd.status);
 
        ret = devm_watchdog_register_device(dev, &pnx4008_wdd);
-       if (ret < 0) {
-               dev_err(dev, "cannot register watchdog device\n");
+       if (ret < 0)
                return ret;
-       }
 
        dev_info(dev, "heartbeat %d sec\n", pnx4008_wdd.timeout);