Commit 2341111f authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging:ced1401: use module_usb_driver macro

the module init and exit functions that are
doing usb_register and usb_deregister respectively can be
replaced with module_usb_driver code
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 81439410
......@@ -1653,19 +1653,5 @@ static struct usb_driver ced_driver = {
.supports_autosuspend = 1,
};
static int __init usb_skel_init(void)
{
/* register this driver with the USB subsystem */
return usb_register(&ced_driver);
}
static void __exit usb_skel_exit(void)
{
/* deregister this driver with the USB subsystem */
usb_deregister(&ced_driver);
}
module_init(usb_skel_init);
module_exit(usb_skel_exit);
module_usb_driver(ced_driver);
MODULE_LICENSE("GPL");
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