Man Page: usb_gadget_unregister_driver
Operating Environment: suse
Section: 9
USB_GADGET_UNREGISTE(9) Kernel Mode Gadget API USB_GADGET_UNREGISTE(9)NAMEusb_gadget_unregister_driver - unregister a gadget driverSYNOPSISint usb_gadget_unregister_driver(struct usb_gadget_driver * driver);ARGUMENTSdriver the driver being unregisteredCONTEXTcan sleepDESCRIPTIONCall this in your gadget driver's module cleanup function, to tell the underlying usb controller that your driver is going away. If the controller is connected to a USB host, it will first disconnect. The driver is also requested to unbind and clean up any device state, before this procedure finally returns. It's expected that the unbind functions will in in exit sections, so may not be linked in some kernels.AUTHORDavid Brownell <dbrownell@users.sourceforge.net> Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 USB_GADGET_UNREGISTE(9)