summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2019-08-12 11:44:34 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-09-17 09:59:02 +0300
commit30520ee8e3bac25dbb1bb43da0e49177be3e19c0 (patch)
tree1ead949cd760b84a86ce4b0929ecc6523d3c097b /drivers/watchdog
parent144783a80cd2cbc45c6ce17db649140b65f203dd (diff)
downloadlinux-30520ee8e3bac25dbb1bb43da0e49177be3e19c0.tar.xz
watchdog: imx_sc: Remove unnecessary error log
An error message is already displayed by watchdog_register_device() when failed, so no need to have error log again for failure of calling devm_watchdog_register_device(). Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20190812084434.13316-1-Anson.Huang@nxp.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/imx_sc_wdt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c
index 78eaaf75a263..9260475439eb 100644
--- a/drivers/watchdog/imx_sc_wdt.c
+++ b/drivers/watchdog/imx_sc_wdt.c
@@ -175,11 +175,8 @@ static int imx_sc_wdt_probe(struct platform_device *pdev)
watchdog_stop_on_unregister(wdog);
ret = devm_watchdog_register_device(dev, wdog);
-
- if (ret) {
- dev_err(dev, "Failed to register watchdog device\n");
+ if (ret)
return ret;
- }
ret = imx_scu_irq_group_enable(SC_IRQ_GROUP_WDOG,
SC_IRQ_WDOG,