Skip to content

Commit daec0f4

Browse files
Shubhrajyoti Dattamfischer
authored andcommitted
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 28910ce ("fpga: xilinx-pr-decoupler: Remove clk_get error message for probe defer") Signed-off-by: Shubhrajyoti Datta <[email protected]> Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Moritz Fischer <[email protected]>
1 parent bb6d3fb commit daec0f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/fpga/zynq-fpga.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ static int zynq_fpga_probe(struct platform_device *pdev)
583583

584584
priv->clk = devm_clk_get(dev, "ref_clk");
585585
if (IS_ERR(priv->clk)) {
586-
dev_err(dev, "input clock not found\n");
586+
if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
587+
dev_err(dev, "input clock not found\n");
587588
return PTR_ERR(priv->clk);
588589
}
589590

0 commit comments

Comments
 (0)