aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2
diff options
context:
space:
mode:
authorJohn Youn <johnyoun@synopsys.com>2016-04-27 23:20:56 -0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-28 02:41:34 -0400
commita6ef3e02542a33fb705e6977221deb0292b27398 (patch)
treef989159c85c64b274e45722f4020bb182df36230 /drivers/usb/dwc2
parent907a444718b8f93956acac1c944d880c54ab900d (diff)
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')
-rw-r--r--drivers/usb/dwc2/platform.c2
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)
562 562
563 retval = dwc2_get_dr_mode(hsotg); 563 retval = dwc2_get_dr_mode(hsotg);
564 if (retval) 564 if (retval)
565 return retval; 565 goto error;
566 566
567 /* 567 /*
568 * Reset before dwc2_get_hwparams() then it could get power-on real 568 * Reset before dwc2_get_hwparams() then it could get power-on real