diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /include/linux/usb_gadget.h | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'include/linux/usb_gadget.h')
| -rw-r--r-- | include/linux/usb_gadget.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/usb_gadget.h b/include/linux/usb_gadget.h index ff81117eb733..1d78870ed8af 100644 --- a/include/linux/usb_gadget.h +++ b/include/linux/usb_gadget.h | |||
| @@ -801,7 +801,9 @@ struct usb_gadget_driver { | |||
| 801 | * Call this in your gadget driver's module initialization function, | 801 | * Call this in your gadget driver's module initialization function, |
| 802 | * to tell the underlying usb controller driver about your driver. | 802 | * to tell the underlying usb controller driver about your driver. |
| 803 | * The driver's bind() function will be called to bind it to a | 803 | * The driver's bind() function will be called to bind it to a |
| 804 | * gadget. This function must be called in a context that can sleep. | 804 | * gadget before this registration call returns. It's expected that |
| 805 | * the bind() functions will be in init sections. | ||
| 806 | * This function must be called in a context that can sleep. | ||
| 805 | */ | 807 | */ |
| 806 | int usb_gadget_register_driver (struct usb_gadget_driver *driver); | 808 | int usb_gadget_register_driver (struct usb_gadget_driver *driver); |
| 807 | 809 | ||
| @@ -814,7 +816,8 @@ int usb_gadget_register_driver (struct usb_gadget_driver *driver); | |||
| 814 | * going away. If the controller is connected to a USB host, | 816 | * going away. If the controller is connected to a USB host, |
| 815 | * it will first disconnect(). The driver is also requested | 817 | * it will first disconnect(). The driver is also requested |
| 816 | * to unbind() and clean up any device state, before this procedure | 818 | * to unbind() and clean up any device state, before this procedure |
| 817 | * finally returns. | 819 | * finally returns. It's expected that the unbind() functions |
| 820 | * will in in exit sections, so may not be linked in some kernels. | ||
| 818 | * This function must be called in a context that can sleep. | 821 | * This function must be called in a context that can sleep. |
| 819 | */ | 822 | */ |
| 820 | int usb_gadget_unregister_driver (struct usb_gadget_driver *driver); | 823 | int usb_gadget_unregister_driver (struct usb_gadget_driver *driver); |
