mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 13:34:38 +08:00
can: xilinx_can: xcan_probe(): skip error message on deferred probe
When can clock is provided from the clock wizard, clock wizard driver
may not be available when can driver probes resulting to the error
message "Device clock not found error".
As this error message is not very userful to the end user, skip printing
it in the case of deferred probe.
Fixes: b1201e44
("can: xilinx CAN controller support")
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
3486cc40cc
commit
6b0d35891c
@ -1780,6 +1780,7 @@ static int xcan_probe(struct platform_device *pdev)
|
||||
/* Getting the CAN can_clk info */
|
||||
priv->can_clk = devm_clk_get(&pdev->dev, "can_clk");
|
||||
if (IS_ERR(priv->can_clk)) {
|
||||
if (PTR_ERR(priv->can_clk) != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "Device clock not found.\n");
|
||||
ret = PTR_ERR(priv->can_clk);
|
||||
goto err_free;
|
||||
|
Loading…
Reference in New Issue
Block a user