Skip to content

Commit

Permalink
staging:ced1401: use module_usb_driver macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent 8143941 commit 2341111
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions drivers/staging/ced1401/usb1401.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit 2341111

Please sign in to comment.