Call unbind() hook of the usb gadget so that it can properly release its resources
authorTimo Juhani Lindfors <timo.lindfors@iki.fi>
Tue, 28 Apr 2009 17:22:46 +0000 (12:22 -0500)
committerNelson Castillo <arhuaco@freaks-unidos.net>
Tue, 28 Apr 2009 17:22:46 +0000 (12:22 -0500)
commit9ecc089861ab238e391de368142cc17b2f715cf7
tree36d1d5a07f6c1f2b2f2a233db7e4407d3a9c1993
parentb4136a36f31a65d0998a328465df9e8e2ba93166
Call unbind() hook of the usb gadget so that it can properly release its resources

Call unbind() hook of the gadget so that it can properly release its
resources. This fixes bug http://docs.openmoko.org/trac/ticket/2240
("removing/reloading g_ether not working"). All other instances of
usb_gadget_unregister_driver in Linux already call unbind() so it is
bit odd s3c2410_udc.c did not do so.

Signed-off-by: Timo Juhani Lindfors <timo.lindfors@iki.fi>
drivers/usb/gadget/s3c2410_udc.c