summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/core.c
diff options
context:
space:
mode:
authorRuchika Kharwar <ruchika@ti.com>2013-07-04 05:59:34 (GMT)
committerFelipe Balbi <balbi@ti.com>2013-07-15 10:00:24 (GMT)
commit315955d707b50c8aad20a32ec0dd4c9fe243cabe (patch)
treed05b8fe78fa940f8dc297505f1e9db1ee7e3df6e /drivers/usb/dwc3/core.c
parent1974d494dea05ea227cb42f5e918828801e237aa (diff)
downloadlinux-fsl-qoriq-315955d707b50c8aad20a32ec0dd4c9fe243cabe.tar.xz
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: Ruchika Kharwar <ruchika@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.c')
-rw-r--r--drivers/usb/dwc3/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index c35d49d..358375e 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