diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-07-09 18:09:56 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-07-10 08:37:09 -0500 |
commit | 909346a819c5b81420d861bd53abd1140b26104e (patch) | |
tree | 229682de918115a852058ce4228862de50cb68a7 /drivers/usb/gadget/acm_ms.c | |
parent | 7ec3ea181d8cffb669982d79664f119ef6a71fc3 (diff) | |
download | op-kernel-dev-909346a819c5b81420d861bd53abd1140b26104e.zip op-kernel-dev-909346a819c5b81420d861bd53abd1140b26104e.tar.gz |
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/acm_ms.c')
-rw-r--r-- | drivers/usb/gadget/acm_ms.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/usb/gadget/acm_ms.c b/drivers/usb/gadget/acm_ms.c index a252444..c30b7b5 100644 --- a/drivers/usb/gadget/acm_ms.c +++ b/drivers/usb/gadget/acm_ms.c @@ -267,18 +267,8 @@ static __refdata struct usb_composite_driver acm_ms_driver = { .unbind = __exit_p(acm_ms_unbind), }; +module_usb_composite_driver(acm_ms_driver); + MODULE_DESCRIPTION(DRIVER_DESC); MODULE_AUTHOR("Klaus Schwarzkopf <schwarzkopf@sensortherm.de>"); MODULE_LICENSE("GPL v2"); - -static int __init init(void) -{ - return usb_composite_probe(&acm_ms_driver); -} -module_init(init); - -static void __exit cleanup(void) -{ - usb_composite_unregister(&acm_ms_driver); -} -module_exit(cleanup); |