summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/loongson1_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/loongson1_wdt.c')
-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);
OpenPOWER on IntegriCloud