staging:ced1401: use module_usb_driver macro
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 20 Sep 2012 16:06:35 +0000 (12:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 15:56:41 +0000 (08:56 -0700)
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: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/usb1401.c

index 69b7f20c9d5101fa4398ca1df922a95e610e2e8b..59d69b406a2122c4d697b5bf6d46f36b1665c20d 100644 (file)
@@ -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");