summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWolfram Sang2019-05-18 23:27:41 +0200
committerWim Van Sebroeck2019-07-08 15:13:10 +0200
commit9076eb5dff9351c2178f76bb2ce63c2c0c98472a (patch)
tree969b8584c657c3bd5e5757bf8cb0e8f25d68b6df /drivers/watchdog
parentwatchdog: mpc8xxx_wdt: drop warning after registering device (diff)
downloadkernel-qcow2-linux-9076eb5dff9351c2178f76bb2ce63c2c0c98472a.tar.gz
kernel-qcow2-linux-9076eb5dff9351c2178f76bb2ce63c2c0c98472a.tar.xz
kernel-qcow2-linux-9076eb5dff9351c2178f76bb2ce63c2c0c98472a.zip
watchdog: ni903x_wdt: drop warning after registering device
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/ni903x_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/ni903x_wdt.c b/drivers/watchdog/ni903x_wdt.c
index 60f5608af2a8..4cebad324b20 100644
--- a/drivers/watchdog/ni903x_wdt.c
+++ b/drivers/watchdog/ni903x_wdt.c
@@ -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,