usb: dwc2: gadget: fix gadget unregistration in udc_stop() function
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 20 Oct 2014 10:45:33 +0000 (12:45 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 23 Oct 2014 18:57:08 +0000 (13:57 -0500)
commit32805c350bad16e7d4debe55820d2e79dca89fb6
treef40f963f90f47c6b4a7c29a9afc404221b8b68f6
parentfd4850cfd4e4060ec85a9db590b5d0e23eec68f5
usb: dwc2: gadget: fix gadget unregistration in udc_stop() function

udc_stop() should clear ->driver pointer unconditionally to let the UDC
framework to work correctly with both registering/unregistering gadgets
and enabling/disabling gadgets by writing to
/sys/class/udc/*hsotg/soft_connect interface.

Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c