summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/multi.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-07-09 18:09:56 +0200
committerFelipe Balbi <balbi@ti.com>2014-07-10 08:37:09 -0500
commit909346a819c5b81420d861bd53abd1140b26104e (patch)
tree229682de918115a852058ce4228862de50cb68a7 /drivers/usb/gadget/multi.c
parent7ec3ea181d8cffb669982d79664f119ef6a71fc3 (diff)
downloadlinux-909346a819c5b81420d861bd53abd1140b26104e.tar.gz
linux-909346a819c5b81420d861bd53abd1140b26104e.tar.bz2
linux-909346a819c5b81420d861bd53abd1140b26104e.zip
usb: gadget: Convert drivers to use module_usb_composite_driver()
Use the module_usb_composite_driver() macro where applicable to eliminate the module_init/module_exit boilerplate in USB gadget composite drivers. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/multi.c')
-rw-r--r--drivers/usb/gadget/multi.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c
index 940f6cde8e89..39d27bb343b4 100644
--- a/drivers/usb/gadget/multi.c
+++ b/drivers/usb/gadget/multi.c
@@ -507,15 +507,4 @@ static __refdata struct usb_composite_driver multi_driver = {
.needs_serial = 1,
};
-
-static int __init multi_init(void)
-{
- return usb_composite_probe(&multi_driver);
-}
-module_init(multi_init);
-
-static void __exit multi_exit(void)
-{
- usb_composite_unregister(&multi_driver);
-}
-module_exit(multi_exit);
+module_usb_composite_driver(multi_driver);