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/btusb.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/btusb.c')
-rw-r--r-- | drivers/bluetooth/btusb.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index f9b726091ad..b0e6d8d5b96 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -1220,20 +1220,7 @@ static struct usb_driver btusb_driver = { | |||
1220 | .supports_autosuspend = 1, | 1220 | .supports_autosuspend = 1, |
1221 | }; | 1221 | }; |
1222 | 1222 | ||
1223 | static int __init btusb_init(void) | 1223 | module_usb_driver(btusb_driver); |
1224 | { | ||
1225 | BT_INFO("Generic Bluetooth USB driver ver %s", VERSION); | ||
1226 | |||
1227 | return usb_register(&btusb_driver); | ||
1228 | } | ||
1229 | |||
1230 | static void __exit btusb_exit(void) | ||
1231 | { | ||
1232 | usb_deregister(&btusb_driver); | ||
1233 | } | ||
1234 | |||
1235 | module_init(btusb_init); | ||
1236 | module_exit(btusb_exit); | ||
1237 | 1224 | ||
1238 | module_param(ignore_dga, bool, 0644); | 1225 | module_param(ignore_dga, bool, 0644); |
1239 | MODULE_PARM_DESC(ignore_dga, "Ignore devices with id 08fd:0001"); | 1226 | MODULE_PARM_DESC(ignore_dga, "Ignore devices with id 08fd:0001"); |