diff options
Diffstat (limited to 'drivers/bluetooth/bfusb.c')
-rw-r--r-- | drivers/bluetooth/bfusb.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index a936763b8c3d..a323baee51b0 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c | |||
@@ -762,26 +762,7 @@ static struct usb_driver bfusb_driver = { | |||
762 | .id_table = bfusb_table, | 762 | .id_table = bfusb_table, |
763 | }; | 763 | }; |
764 | 764 | ||
765 | static int __init bfusb_init(void) | 765 | module_usb_driver(bfusb_driver); |
766 | { | ||
767 | int err; | ||
768 | |||
769 | BT_INFO("BlueFRITZ! USB driver ver %s", VERSION); | ||
770 | |||
771 | err = usb_register(&bfusb_driver); | ||
772 | if (err < 0) | ||
773 | BT_ERR("Failed to register BlueFRITZ! USB driver"); | ||
774 | |||
775 | return err; | ||
776 | } | ||
777 | |||
778 | static void __exit bfusb_exit(void) | ||
779 | { | ||
780 | usb_deregister(&bfusb_driver); | ||
781 | } | ||
782 | |||
783 | module_init(bfusb_init); | ||
784 | module_exit(bfusb_exit); | ||
785 | 766 | ||
786 | MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); | 767 | MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); |
787 | MODULE_DESCRIPTION("BlueFRITZ! USB driver ver " VERSION); | 768 | MODULE_DESCRIPTION("BlueFRITZ! USB driver ver " VERSION); |