Revert "usb: udc: allow adding and removing the same gadget device"
authorPeter Chen <peter.chen@nxp.com>
Fri, 21 Aug 2020 02:55:49 +0000 (10:55 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:42 +0000 (09:57 +0300)
commit7595c38bb1a64b3103ded1877bbf519e7dad4b1d
treef8b4382b0f37d763c32dbec78ae7cb03f9636c12
parente81a7018d93a7de31a3f121c9a7eecd0a5ec58b0
Revert "usb: udc: allow adding and removing the same gadget device"

We have already allocated gadget structure dynamically at UDC (dwc3)
driver, so commit fac323471df6 ("usb: udc: allow adding and removing
the same gadget device")could be reverted.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/core.c