diff options
| author | Peter Chen <[email protected]> | 2020-08-21 10:55:48 +0800 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2020-10-02 09:57:42 +0300 |
| commit | e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0 (patch) | |
| tree | 4df35b09f38a78e71a14a9f5c7c6db7aa161c15a /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 6b7778924c70dad395f6aa843d641e799590f890 (diff) | |
usb: dwc3: allocate gadget structure dynamically
The current code uses commit fac323471df6 ("usb: udc: allow adding
and removing the same gadget device") as the workaround to let
the gadget device is re-used, but it is not allowed from driver
core point. In this commit, we allocate gadget structure dynamically,
and free it at its release function. Since the gadget device's
driver_data has already occupied by usb_composite_dev structure, we have
to use gadget device's platform data to store dwc3 structure.
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Alan Stern <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions