summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-18 23:27:48 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 15:13:13 +0200
commitccbf872a3ee7071a09c3a3c22a4cb4a2ee162611 (patch)
tree2ba6ecf167619b33262d41cdacac8cbdc4565501 /drivers/watchdog
parent375611e561b13f3be01e9b7be79f54de4bfd7711 (diff)
downloadlinux-0-day-ccbf872a3ee7071a09c3a3c22a4cb4a2ee162611.tar.gz
linux-0-day-ccbf872a3ee7071a09c3a3c22a4cb4a2ee162611.tar.xz
watchdog: qcom-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/qcom-wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c
index fc0f7e5de38d8..7be7f87be28fd 100644
--- a/drivers/watchdog/qcom-wdt.c
+++ b/drivers/watchdog/qcom-wdt.c
@@ -223,10 +223,8 @@ static int qcom_wdt_probe(struct platform_device *pdev)
watchdog_init_timeout(&wdt->wdd, 0, dev);
ret = devm_watchdog_register_device(dev, &wdt->wdd);
- if (ret) {
- dev_err(dev, "failed to register watchdog\n");
+ if (ret)
return ret;
- }
platform_set_drvdata(pdev, wdt);
return 0;