Commit daec0f4a authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by Moritz Fischer

fpga: zynq: Remove clk_get error message for probe defer

In probe, the driver checks for devm_clk_get return and print error
message in the failing case. However for -EPROBE_DEFER this message is
confusing so avoid it.

The similar change was done also by commit 28910cee
("fpga: xilinx-pr-decoupler: Remove clk_get error message for probe defer")
Signed-off-by: default avatarShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
parent bb6d3fb3
...@@ -583,6 +583,7 @@ static int zynq_fpga_probe(struct platform_device *pdev) ...@@ -583,6 +583,7 @@ static int zynq_fpga_probe(struct platform_device *pdev)
priv->clk = devm_clk_get(dev, "ref_clk"); priv->clk = devm_clk_get(dev, "ref_clk");
if (IS_ERR(priv->clk)) { if (IS_ERR(priv->clk)) {
if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
dev_err(dev, "input clock not found\n"); dev_err(dev, "input clock not found\n");
return PTR_ERR(priv->clk); return PTR_ERR(priv->clk);
} }
......
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