diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-23 23:13:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-23 23:13:19 (GMT) |
commit | 4a6313644c3188f4aa1a6b4403896375baa2e09a (patch) | |
tree | 8e4cc625a62c8d5a68d5788813aebcb4af153be6 /drivers/staging/line6/driver.c | |
parent | 15a89dc83bad5c22a02bd292cf87d72dacb7dcb3 (diff) | |
download | linux-4a6313644c3188f4aa1a6b4403896375baa2e09a.tar.xz |
Staging: line6: use module_usb_driver()
Now that our module_init/exit path is just registering and unregistering
the usb driver, we can use module_usb_driver() instead. This also has
the nice side affect of removing the unneeded printk for the module
version number.
CC: Markus Grabner <grabner@icg.tugraz.at>
CC: Stefan Hajnoczi <stefanha@gmail.com>
CC: Julia Lawall <julia@diku.dk>
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/line6/driver.c')
-rw-r--r-- | drivers/staging/line6/driver.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/staging/line6/driver.c b/drivers/staging/line6/driver.c index c476fcc3..4513f78 100644 --- a/drivers/staging/line6/driver.c +++ b/drivers/staging/line6/driver.c @@ -1300,26 +1300,7 @@ static struct usb_driver line6_driver = { .id_table = line6_id_table, }; -/* - Module initialization. -*/ -static int __init line6_init(void) -{ - printk(KERN_INFO "%s driver version %s\n", DRIVER_NAME, DRIVER_VERSION); - - return usb_register(&line6_driver); -} - -/* - Module cleanup. -*/ -static void __exit line6_exit(void) -{ - usb_deregister(&line6_driver); -} - -module_init(line6_init); -module_exit(line6_exit); +module_usb_driver(line6_driver); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); |