aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <m.nazarewicz@samsung.com>2009-11-09 08:15:25 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 14:55:23 -0500
commit915c8befccbe5d81d441b53ab7a9a98caf0c67d4 (patch)
tree589d3b241d237a8a10729f2a39b05f9fba8dee86 /drivers/usb/gadget/composite.c
parent8ea864cffdfd327117d4b7829935974b3f47ff31 (diff)
USB: composite: usb_composite_unregister() no longer __exit
Changed definition of usb_composite_unregister() function removing __exit declaration. This way, the function is included even if the whole code was not compiled as module. This is required if a compiled-in code would like to unregister a composite gadget. Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r--drivers/usb/gadget/composite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index 8498f1a114d5..09289bb1e20f 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -1092,7 +1092,8 @@ static struct usb_gadget_driver composite_driver = {
1092 .speed = USB_SPEED_HIGH, 1092 .speed = USB_SPEED_HIGH,
1093 1093
1094 .bind = composite_bind, 1094 .bind = composite_bind,
1095 .unbind = __exit_p(composite_unbind), 1095 /* .unbind = __exit_p(composite_unbind), */
1096 .unbind = composite_unbind,
1096 1097
1097 .setup = composite_setup, 1098 .setup = composite_setup,
1098 .disconnect = composite_disconnect, 1099 .disconnect = composite_disconnect,
@@ -1141,7 +1142,7 @@ int __init usb_composite_register(struct usb_composite_driver *driver)
1141 * This function is used to unregister drivers using the composite 1142 * This function is used to unregister drivers using the composite
1142 * driver framework. 1143 * driver framework.
1143 */ 1144 */
1144void __exit usb_composite_unregister(struct usb_composite_driver *driver) 1145void /* __exit */ usb_composite_unregister(struct usb_composite_driver *driver)
1145{ 1146{
1146 if (composite != driver) 1147 if (composite != driver)
1147 return; 1148 return;