mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
usb: musb: da8xx: Don't print phy error on -EPROBE_DEFER
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 <david@lechnology.com> Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e244978163
commit
355f1a3918
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue