Skip to content

Commit

Permalink
watchdog: imx_sc: Remove unnecessary error log
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anson Huang authored and Wim Van Sebroeck committed Sep 17, 2019
1 parent 144783a commit 30520ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/watchdog/imx_sc_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 30520ee

Please sign in to comment.