From: Ruchika Kharwar Date: Thu, 4 Jul 2013 05:59:34 +0000 (-0500) Subject: usb: dwc3: fix the error returned with usb3_phy failure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=315955d707b50c8aad20a32ec0dd4c9fe243cabe;p=linux-beck.git 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: Signed-off-by: Ruchika Kharwar Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index c35d49d39b76..358375e0b291 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -450,7 +450,7 @@ static int dwc3_probe(struct platform_device *pdev) } 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