Skip to content

Commit ef14cab

Browse files
Michal SimekWim Van Sebroeck
authored andcommitted
watchdog: cadence: Do not show error in case of deferred probe
There is no reason to show error message if clocks are not ready yet. Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/d3e295d5ba79f453b4aa4128c4fa63fbd6c16920.1570544944.git.michal.simek@xilinx.com Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 72139df commit ef14cab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/watchdog/cadence_wdt.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,10 @@ static int cdns_wdt_probe(struct platform_device *pdev)
335335

336336
wdt->clk = devm_clk_get(dev, NULL);
337337
if (IS_ERR(wdt->clk)) {
338-
dev_err(dev, "input clock not found\n");
339-
return PTR_ERR(wdt->clk);
338+
ret = PTR_ERR(wdt->clk);
339+
if (ret != -EPROBE_DEFER)
340+
dev_err(dev, "input clock not found\n");
341+
return ret;
340342
}
341343

342344
ret = clk_prepare_enable(wdt->clk);

0 commit comments

Comments
 (0)