Patch 1/2 introduces the module_usb_composite_driver helper macro (similar to module_usb_driver and friends) which can be used to reduce module_init/module_exit boilerplate for USB gadget composite drivers. Patch 2/2 converts gadget drivers to use module_usb_composite_driver where applicable. Patches are against linux-next 20140709. Tobias Klauser (2): usb: gadget: Add helper macro for usb_composite_driver boilerplate usb: gadget: Convert drivers to use module_usb_composite_driver() drivers/usb/gadget/acm_ms.c | 14 ++------------ drivers/usb/gadget/audio.c | 12 +----------- drivers/usb/gadget/cdc2.c | 14 ++------------ drivers/usb/gadget/ether.c | 14 ++------------ drivers/usb/gadget/gmidi.c | 13 +------------ drivers/usb/gadget/multi.c | 13 +------------ drivers/usb/gadget/ncm.c | 14 ++------------ drivers/usb/gadget/nokia.c | 12 +----------- drivers/usb/gadget/webcam.c | 15 +-------------- drivers/usb/gadget/zero.c | 14 ++------------ include/linux/usb/composite.h | 15 +++++++++++++++ 11 files changed, 30 insertions(+), 120 deletions(-) -- 2.0.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html