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

index 60f5608..4cebad3 100644 (file)
@@ -211,10 +211,8 @@ static int ni903x_acpi_add(struct acpi_device *device)
        watchdog_init_timeout(wdd, timeout, dev);
 
        ret = watchdog_register_device(wdd);
-       if (ret) {
-               dev_err(dev, "failed to register watchdog\n");
+       if (ret)
                return ret;
-       }
 
        /* Switch from boot mode to user mode */
        outb(NIWD_CONTROL_RESET | NIWD_CONTROL_MODE,