Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 355f1a39 authored by David Lechner's avatar David Lechner Committed by Greg Kroah-Hartman
Browse files

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: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e2449781
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -479,6 +479,7 @@ static int da8xx_probe(struct platform_device *pdev)

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