summaryrefslogtreecommitdiffstats
path: root/drivers/fpga
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>2020-01-10 07:31:13 +0100
committerMoritz Fischer <mdf@kernel.org>2020-01-10 21:51:56 +0100
commit28910cee898c2a43fcdd8c26e1378ae8084a93a0 (patch)
tree68a1738d7c3c25e0b12117267c22ca48de03d267 /drivers/fpga
parentfpga: remove redundant dev_err message (diff)
downloadlinux-28910cee898c2a43fcdd8c26e1378ae8084a93a0.tar.xz
linux-28910cee898c2a43fcdd8c26e1378ae8084a93a0.zip
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 <shubhrajyoti.datta@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'drivers/fpga')
-rw-r--r--drivers/fpga/xilinx-pr-decoupler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/fpga/xilinx-pr-decoupler.c b/drivers/fpga/xilinx-pr-decoupler.c
index af9b387c56d3..7d69af230567 100644
--- a/drivers/fpga/xilinx-pr-decoupler.c
+++ b/drivers/fpga/xilinx-pr-decoupler.c
@@ -101,7 +101,8 @@ static int xlnx_pr_decoupler_probe(struct platform_device *pdev)
priv->clk = devm_clk_get(&pdev->dev, "aclk");
if (IS_ERR(priv->clk)) {
- dev_err(&pdev->dev, "input clock not found\n");
+ if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "input clock not found\n");
return PTR_ERR(priv->clk);
}