提交 28910cee 编写于 作者: S Shubhrajyoti Datta 提交者: Moritz Fischer

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: NShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Signed-off-by: NMoritz Fischer <mdf@kernel.org>
上级 1d39387c
...@@ -101,6 +101,7 @@ static int xlnx_pr_decoupler_probe(struct platform_device *pdev) ...@@ -101,6 +101,7 @@ static int xlnx_pr_decoupler_probe(struct platform_device *pdev)
priv->clk = devm_clk_get(&pdev->dev, "aclk"); priv->clk = devm_clk_get(&pdev->dev, "aclk");
if (IS_ERR(priv->clk)) { if (IS_ERR(priv->clk)) {
if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
dev_err(&pdev->dev, "input clock not found\n"); dev_err(&pdev->dev, "input clock not found\n");
return PTR_ERR(priv->clk); return PTR_ERR(priv->clk);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册