]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: ci_udc: clean up all allocations in unregister
authorStephen Warren <swarren@nvidia.com>
Tue, 10 Jun 2014 17:02:38 +0000 (11:02 -0600)
committerMarek Vasut <marex@denx.de>
Wed, 11 Jun 2014 00:26:05 +0000 (02:26 +0200)
commitb7c0051687f42173e15b151a74e524587e8b59db
treefb41e64bb32a00f036ac2e2140d45d80ae3ec121
parent9a7d34be13a6934e0fddfaf12236d8784343f902
usb: ci_udc: clean up all allocations in unregister

usb_gadget_unregister_driver() is called to tear down the USB device mode
stack. Fix the driver to stop the USB HW (which causes any attached host
to notice the disappearance of the device), and free all allocations
(which obviously prevents memory leaks).

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/gadget/ci_udc.c