Skip to content

Commit

Permalink
usb: musb: da8xx: Don't print phy error on -EPROBE_DEFER
Browse files Browse the repository at this point in the history
This suppresses printing the error message "failed to get phy" in the
kernel log when the error is -EPROBE_DEFER. This prevents usless noise
in the kernel log.

Signed-off-by: David Lechner <[email protected]>
Signed-off-by: Bin Liu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
dlech authored and gregkh committed Nov 7, 2016
1 parent e244978 commit 355f1a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/musb/da8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ static int da8xx_probe(struct platform_device *pdev)

glue->phy = devm_phy_get(&pdev->dev, "usb-phy");
if (IS_ERR(glue->phy)) {
dev_err(&pdev->dev, "failed to get phy\n");
if (PTR_ERR(glue->phy) != -EPROBE_DEFER)
dev_err(&pdev->dev, "failed to get phy\n");
return PTR_ERR(glue->phy);
}

Expand Down

0 comments on commit 355f1a3

Please sign in to comment.