aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-18 23:27:36 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 15:13:09 +0200
commit9daa2e1436f307309663b176abd5d1d443c5e080 (patch)
treeaff255cb7b4caf985e1fd029a7bb08c344a55e59 /drivers/watchdog
parentwatchdog: loongson1_wdt: drop warning after registering device (diff)
downloadlinux-dev-9daa2e1436f307309663b176abd5d1d443c5e080.tar.xz
linux-dev-9daa2e1436f307309663b176abd5d1d443c5e080.zip
watchdog: max77620_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/max77620_wdt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/watchdog/max77620_wdt.c b/drivers/watchdog/max77620_wdt.c
index 9937f9fccd2e..be6a53c30002 100644
--- a/drivers/watchdog/max77620_wdt.c
+++ b/drivers/watchdog/max77620_wdt.c
@@ -182,13 +182,7 @@ static int max77620_wdt_probe(struct platform_device *pdev)
watchdog_set_drvdata(wdt_dev, wdt);
watchdog_stop_on_unregister(wdt_dev);
- ret = devm_watchdog_register_device(dev, wdt_dev);
- if (ret < 0) {
- dev_err(dev, "watchdog registration failed: %d\n", ret);
- return ret;
- }
-
- return 0;
+ return devm_watchdog_register_device(dev, wdt_dev);
}
static const struct platform_device_id max77620_wdt_devtype[] = {