diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-05-18 23:28:00 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2019-07-08 15:13:18 +0200 |
commit | f848a15347d9707b38430976e801dd442480b42a (patch) | |
tree | bfec3631656f063bc8395c8335979d72a8745abb /drivers/watchdog/wm831x_wdt.c | |
parent | c8c844f28b68d1b09be3993007b599b01886e6eb (diff) | |
download | linux-f848a15347d9707b38430976e801dd442480b42a.tar.gz linux-f848a15347d9707b38430976e801dd442480b42a.tar.bz2 linux-f848a15347d9707b38430976e801dd442480b42a.zip |
watchdog: wm831x_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/wm831x_wdt.c')
-rw-r--r-- | drivers/watchdog/wm831x_wdt.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/watchdog/wm831x_wdt.c b/drivers/watchdog/wm831x_wdt.c index 9b6565a3fab4..030ce240620d 100644 --- a/drivers/watchdog/wm831x_wdt.c +++ b/drivers/watchdog/wm831x_wdt.c @@ -267,14 +267,7 @@ static int wm831x_wdt_probe(struct platform_device *pdev) } } - ret = devm_watchdog_register_device(dev, &driver_data->wdt); - if (ret != 0) { - dev_err(wm831x->dev, "watchdog_register_device() failed: %d\n", - ret); - return ret; - } - - return 0; + return devm_watchdog_register_device(dev, &driver_data->wdt); } static struct platform_driver wm831x_wdt_driver = { |