Commit a2a8e48a authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz Committed by Felipe Balbi

usb: gadget: printer: use module_usb_composite_driver helper macro

Substitute some boilerplate code with a dedicated macro.
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent d85dc482
...@@ -208,19 +208,7 @@ static __refdata struct usb_composite_driver printer_driver = { ...@@ -208,19 +208,7 @@ static __refdata struct usb_composite_driver printer_driver = {
.unbind = printer_unbind, .unbind = printer_unbind,
}; };
static int __init module_usb_composite_driver(printer_driver);
init(void)
{
return usb_composite_probe(&printer_driver);
}
module_init(init);
static void __exit
cleanup(void)
{
usb_composite_unregister(&printer_driver);
}
module_exit(cleanup);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_AUTHOR("Craig Nadler"); MODULE_AUTHOR("Craig Nadler");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment