[PATCH] USB: gadget driver section fixups
authorDavid Brownell <david-b@pacbell.net>
Sat, 18 Feb 2006 20:31:05 +0000 (12:31 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:49:58 +0000 (14:49 -0800)
commit329af28b141ab4ae847aff1362864c4cc332641f
treec4871a6065ed635998204efef0a63fda8c3dbfcc
parent43c5d5aaafef56618a6efbcab7f91615da1a8659
[PATCH] USB: gadget driver section fixups

This adds __init section annotations to gadget driver bind() routines to
remove calls from .text into .init sections (for endpoint autoconfig).
Likewise it adds __exit section annotations to their unbind() routines.

The specification of the gadget driver register/unregister functions is
updated to explicitly allow use of those sections.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ether.c
drivers/usb/gadget/file_storage.c
drivers/usb/gadget/serial.c
drivers/usb/gadget/zero.c
include/linux/usb_gadget.h