diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2015-03-03 04:52:31 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-10 16:33:41 -0400 |
commit | a2a8e48a94c78c72b5dd1e4c8d190c5c54aca7a4 (patch) | |
tree | bcb59c46ece69634c89262735013a5c0e01942f5 /drivers/usb/gadget | |
parent | d85dc4824c5793f4b71225d7ba5b50e737045830 (diff) |
usb: gadget: printer: use module_usb_composite_driver helper macro
Substitute some boilerplate code with a dedicated macro.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/legacy/printer.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/usb/gadget/legacy/printer.c b/drivers/usb/gadget/legacy/printer.c index a8050f8cbe11..d5b6ee725a2a 100644 --- a/drivers/usb/gadget/legacy/printer.c +++ b/drivers/usb/gadget/legacy/printer.c | |||
@@ -208,19 +208,7 @@ static __refdata struct usb_composite_driver printer_driver = { | |||
208 | .unbind = printer_unbind, | 208 | .unbind = printer_unbind, |
209 | }; | 209 | }; |
210 | 210 | ||
211 | static int __init | 211 | module_usb_composite_driver(printer_driver); |
212 | init(void) | ||
213 | { | ||
214 | return usb_composite_probe(&printer_driver); | ||
215 | } | ||
216 | module_init(init); | ||
217 | |||
218 | static void __exit | ||
219 | cleanup(void) | ||
220 | { | ||
221 | usb_composite_unregister(&printer_driver); | ||
222 | } | ||
223 | module_exit(cleanup); | ||
224 | 212 | ||
225 | MODULE_DESCRIPTION(DRIVER_DESC); | 213 | MODULE_DESCRIPTION(DRIVER_DESC); |
226 | MODULE_AUTHOR("Craig Nadler"); | 214 | MODULE_AUTHOR("Craig Nadler"); |