Skip to content

Commit

Permalink
fpga: zynq: Remove clk_get error message for probe defer
Browse files Browse the repository at this point in the history
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 28910ce
("fpga: xilinx-pr-decoupler: Remove clk_get error message for probe defer")

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
  • Loading branch information
Shubhrajyoti Datta authored and mfischer committed Mar 31, 2020
1 parent bb6d3fb commit daec0f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/fpga/zynq-fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ static int zynq_fpga_probe(struct platform_device *pdev)

priv->clk = devm_clk_get(dev, "ref_clk");
if (IS_ERR(priv->clk)) {
dev_err(dev, "input clock not found\n");
if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
dev_err(dev, "input clock not found\n");
return PTR_ERR(priv->clk);
}

Expand Down

0 comments on commit daec0f4

Please sign in to comment.