Skip to content

Commit

Permalink
net: can: xilinx: Avoid printing bus clock not found in case of defer
Browse files Browse the repository at this point in the history
Avoid printing "bus clock not found" error message
in the case of defer.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Venkatesh Yadav Abbarapu authored and Michal Simek committed Aug 28, 2019
1 parent 925f6e9 commit 1449f08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/can/xilinx_can.c
Expand Up @@ -1767,7 +1767,8 @@ static int xcan_probe(struct platform_device *pdev)

priv->bus_clk = devm_clk_get(&pdev->dev, devtype->bus_clk_name);
if (IS_ERR(priv->bus_clk)) {
dev_err(&pdev->dev, "bus clock not found\n");
if (PTR_ERR(priv->bus_clk) != -EPROBE_DEFER)
dev_err(&pdev->dev, "bus clock not found\n");
ret = PTR_ERR(priv->bus_clk);
goto err_free;
}
Expand Down

0 comments on commit 1449f08

Please sign in to comment.