Commit 30520ee8 authored by Anson Huang's avatar Anson Huang Committed by Wim Van Sebroeck

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: default avatarAnson Huang <Anson.Huang@nxp.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190812084434.13316-1-Anson.Huang@nxp.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 144783a8
...@@ -175,11 +175,8 @@ static int imx_sc_wdt_probe(struct platform_device *pdev) ...@@ -175,11 +175,8 @@ static int imx_sc_wdt_probe(struct platform_device *pdev)
watchdog_stop_on_unregister(wdog); watchdog_stop_on_unregister(wdog);
ret = devm_watchdog_register_device(dev, wdog); ret = devm_watchdog_register_device(dev, wdog);
if (ret)
if (ret) {
dev_err(dev, "Failed to register watchdog device\n");
return ret; return ret;
}
ret = imx_scu_irq_group_enable(SC_IRQ_GROUP_WDOG, ret = imx_scu_irq_group_enable(SC_IRQ_GROUP_WDOG,
SC_IRQ_WDOG, SC_IRQ_WDOG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment