summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.c
diff options
context:
space:
mode:
authorRuchika Kharwar <ruchika@ti.com>2013-07-04 00:59:34 -0500
committerFelipe Balbi <balbi@ti.com>2013-07-15 13:00:24 +0300
commit315955d707b50c8aad20a32ec0dd4c9fe243cabe (patch)
treed05b8fe78fa940f8dc297505f1e9db1ee7e3df6e /drivers/usb/dwc3/core.c
parent1974d494dea05ea227cb42f5e918828801e237aa (diff)
downloadtalos-op-linux-315955d707b50c8aad20a32ec0dd4c9fe243cabe.tar.gz
talos-op-linux-315955d707b50c8aad20a32ec0dd4c9fe243cabe.zip
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 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
OpenPOWER on IntegriCloud