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

Commit 315955d7 authored by Ruchika Kharwar's avatar Ruchika Kharwar Committed by Felipe Balbi
Browse files

usb: dwc3: fix the error returned with usb3_phy failure



When there is an error with the usb3_phy probe or absence, the error returned
is erroneously for usb2_phy.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarRuchika Kharwar <ruchika@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 1974d494
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -450,7 +450,7 @@ static int dwc3_probe(struct platform_device *pdev)
	}
	}


	if (IS_ERR(dwc->usb3_phy)) {
	if (IS_ERR(dwc->usb3_phy)) {
		ret = PTR_ERR(dwc->usb2_phy);
		ret = PTR_ERR(dwc->usb3_phy);


		/*
		/*
		 * if -ENXIO is returned, it means PHY layer wasn't
		 * if -ENXIO is returned, it means PHY layer wasn't