diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-09-20 12:06:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-21 08:56:41 -0700 |
commit | 2341111f6dcfad5f81d3de21acc43c97ce56ec60 (patch) | |
tree | 2c998a189764875d475820b41e43e46c45a9dc36 /drivers/staging/ced1401 | |
parent | 814394100d5bfd5b33cddede907a4e0a216b93b6 (diff) | |
download | blackbird-op-linux-2341111f6dcfad5f81d3de21acc43c97ce56ec60.tar.gz blackbird-op-linux-2341111f6dcfad5f81d3de21acc43c97ce56ec60.zip |
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: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ced1401')
-rw-r--r-- | drivers/staging/ced1401/usb1401.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401.c index 69b7f20c9d51..59d69b406a21 100644 --- a/drivers/staging/ced1401/usb1401.c +++ b/drivers/staging/ced1401/usb1401.c @@ -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"); |