aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-18 23:27:35 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 15:13:08 +0200
commit7da547350f5067c94d935f9b1fbef8dbc2c202ab (patch)
treeb892c72eb9108cbce2d43766b683e20d563c6f2a /drivers/watchdog
parentwatchdog: jz4740_wdt: drop warning after registering device (diff)
downloadlinux-dev-7da547350f5067c94d935f9b1fbef8dbc2c202ab.tar.xz
linux-dev-7da547350f5067c94d935f9b1fbef8dbc2c202ab.zip
watchdog: loongson1_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/loongson1_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/loongson1_wdt.c b/drivers/watchdog/loongson1_wdt.c
index c8c2b8a88fc2..bb3d075c0633 100644
--- a/drivers/watchdog/loongson1_wdt.c
+++ b/drivers/watchdog/loongson1_wdt.c
@@ -132,10 +132,8 @@ static int ls1x_wdt_probe(struct platform_device *pdev)
watchdog_set_drvdata(ls1x_wdt, drvdata);
err = devm_watchdog_register_device(dev, &drvdata->wdt);
- if (err) {
- dev_err(dev, "failed to register watchdog device\n");
+ if (err)
return err;
- }
platform_set_drvdata(pdev, drvdata);