diff options
author | Ruchika Kharwar <ruchika@ti.com> | 2013-07-04 00:59:34 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-15 13:00:24 +0300 |
commit | 315955d707b50c8aad20a32ec0dd4c9fe243cabe (patch) | |
tree | d05b8fe78fa940f8dc297505f1e9db1ee7e3df6e /drivers/usb/dwc3 | |
parent | 1974d494dea05ea227cb42f5e918828801e237aa (diff) | |
download | op-kernel-dev-315955d707b50c8aad20a32ec0dd4c9fe243cabe.zip op-kernel-dev-315955d707b50c8aad20a32ec0dd4c9fe243cabe.tar.gz |
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')
-rw-r--r-- | drivers/usb/dwc3/core.c | 2 |
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 |