Commit 28910cee authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by Moritz Fischer
Browse files

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: 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 1d39387c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ static int xlnx_pr_decoupler_probe(struct platform_device *pdev)

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