diff options
| author | Martin Blumenstingl <[email protected]> | 2020-07-04 00:50:43 +0200 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2020-09-24 11:56:16 +0300 |
| commit | e1c08cf23172ed6fb228d75efc9f4c80a6812116 (patch) | |
| tree | f177d9a8a28e2622ae43c17fdc65d66712b92e82 /tools/perf/scripts/python | |
| parent | e518bdd9f02c11c6fcbd75884f2a38782bedd1b3 (diff) | |
usb: dwc2: Add missing cleanups when usb_add_gadget_udc() fails
Call dwc2_debugfs_exit() and dwc2_hcd_remove() (if the HCD was enabled
earlier) when usb_add_gadget_udc() has failed. This ensures that the
debugfs entries created by dwc2_debugfs_init() as well as the HCD are
cleaned up in the error path.
Fixes: 207324a321a866 ("usb: dwc2: Postponed gadget registration to the udc class driver")
Acked-by: Minas Harutyunyan <[email protected]>
Signed-off-by: Martin Blumenstingl <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions