1. NAME

usb_gadget_unregister_driver - unregister a gadget driver

2. SYNOPSIS

int usb_gadget_unregister_driver(struct usb_gadget_driver *  driver );

3. ARGUMENTS

driver
    the driver being unregistered

4. CONTEXT

can sleep

5. DESCRIPTION

Call this in your gadget driverAqs 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. ItAqs expected that the unbind functions will in in exit sections, so may not be linked in some kernels.

6. AUTHOR

David Brownell < >
    Author.

7. COPYRIGHT