Skip to content

Commit 28910ce

Browse files
Shubhrajyoti Dattamfischer
authored andcommitted
fpga: xilinx-pr-decoupler: 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. Signed-off-by: Shubhrajyoti Datta <[email protected]> Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Moritz Fischer <[email protected]>
1 parent 1d39387 commit 28910ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/fpga/xilinx-pr-decoupler.c

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

102102
priv->clk = devm_clk_get(&pdev->dev, "aclk");
103103
if (IS_ERR(priv->clk)) {
104-
dev_err(&pdev->dev, "input clock not found\n");
104+
if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
105+
dev_err(&pdev->dev, "input clock not found\n");
105106
return PTR_ERR(priv->clk);
106107
}
107108

0 commit comments

Comments
 (0)