projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
907a444
)
usb: dwc2: Proper cleanup on dr_mode failure
author
John Youn
<johnyoun@synopsys.com>
Thu, 28 Apr 2016 03:20:56 +0000
(20:20 -0700)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 28 Apr 2016 06:41:34 +0000
(09:41 +0300)
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>
drivers/usb/dwc2/platform.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc2/platform.c
b/drivers/usb/dwc2/platform.c
index 88629bed66147a4219a2f1dc36b1a0f4f556defc..fc6f5251de5d1e891db129e77f782766ea4b6ef9 100644
(file)
--- 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