diff options
author | John Youn <johnyoun@synopsys.com> | 2016-04-28 06:20:56 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-28 09:41:34 +0300 |
commit | a6ef3e02542a33fb705e6977221deb0292b27398 (patch) | |
tree | f989159c85c64b274e45722f4020bb182df36230 /drivers/usb/dwc2/platform.c | |
parent | 907a444718b8f93956acac1c944d880c54ab900d (diff) | |
download | linux-a6ef3e02542a33fb705e6977221deb0292b27398.tar.xz |
usb: dwc2: Proper cleanup on dr_mode failure
Cleanup in probe if we fail to get dr_mode.
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/platform.c')
-rw-r--r-- | drivers/usb/dwc2/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 88629bed6614..fc6f5251de5d 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -562,7 +562,7 @@ static int dwc2_driver_probe(struct platform_device *dev) retval = dwc2_get_dr_mode(hsotg); if (retval) - return retval; + goto error; /* * Reset before dwc2_get_hwparams() then it could get power-on real |