diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:47:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:47:34 -0500 |
commit | 93f1508cffc3d578c2b7bbbf298dc52326b80777 (patch) | |
tree | cf0d5682a008f3368321e5a1c26fbfbdb65c8d39 /drivers/bluetooth/ath3k.c | |
parent | ecb3b2b35db49778b6d89e3ffd0c400776c20735 (diff) |
USB: convert drivers/bluetooth/* to use module_usb_driver()
This converts the drivers in drivers/bluetooth/* to use the
module_usb_driver() macro which makes the code smaller and a bit
simpler.
Added bonus is that it removes some unneeded kernel log messages about
drivers loading and/or unloading.
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: "Gustavo F. Padovan" <padovan@profusion.mobi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/bluetooth/ath3k.c')
-rw-r--r-- | drivers/bluetooth/ath3k.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c index 106beb194f3c..cf77a9a2bfa4 100644 --- a/drivers/bluetooth/ath3k.c +++ b/drivers/bluetooth/ath3k.c | |||
@@ -423,19 +423,7 @@ static struct usb_driver ath3k_driver = { | |||
423 | .id_table = ath3k_table, | 423 | .id_table = ath3k_table, |
424 | }; | 424 | }; |
425 | 425 | ||
426 | static int __init ath3k_init(void) | 426 | module_usb_driver(ath3k_driver); |
427 | { | ||
428 | BT_INFO("Atheros AR30xx firmware driver ver %s", VERSION); | ||
429 | return usb_register(&ath3k_driver); | ||
430 | } | ||
431 | |||
432 | static void __exit ath3k_exit(void) | ||
433 | { | ||
434 | usb_deregister(&ath3k_driver); | ||
435 | } | ||
436 | |||
437 | module_init(ath3k_init); | ||
438 | module_exit(ath3k_exit); | ||
439 | 427 | ||
440 | MODULE_AUTHOR("Atheros Communications"); | 428 | MODULE_AUTHOR("Atheros Communications"); |
441 | MODULE_DESCRIPTION("Atheros AR30xx firmware driver"); | 429 | MODULE_DESCRIPTION("Atheros AR30xx firmware driver"); |