summaryrefslogtreecommitdiff
path: root/drivers/watchdog/qcom-wdt.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-05-19 00:27:48 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-07-08 16:13:13 +0300
commitccbf872a3ee7071a09c3a3c22a4cb4a2ee162611 (patch)
tree2ba6ecf167619b33262d41cdacac8cbdc4565501 /drivers/watchdog/qcom-wdt.c
parent375611e561b13f3be01e9b7be79f54de4bfd7711 (diff)
downloadlinux-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/qcom-wdt.c')
-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 fc0f7e5de38d..7be7f87be28f 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;