]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/bluetooth/bfusb.c
USB: convert drivers/bluetooth/* to use module_usb_driver()
[karo-tx-linux.git] / drivers / bluetooth / bfusb.c
index 61b591470a90827280005b50b000907a7e7c2ac2..e64a290a1b98a1128d6ce06cca508a434318d525 100644 (file)
@@ -764,26 +764,7 @@ static struct usb_driver bfusb_driver = {
        .id_table       = bfusb_table,
 };
 
-static int __init bfusb_init(void)
-{
-       int err;
-
-       BT_INFO("BlueFRITZ! USB driver ver %s", VERSION);
-
-       err = usb_register(&bfusb_driver);
-       if (err < 0)
-               BT_ERR("Failed to register BlueFRITZ! USB driver");
-
-       return err;
-}
-
-static void __exit bfusb_exit(void)
-{
-       usb_deregister(&bfusb_driver);
-}
-
-module_init(bfusb_init);
-module_exit(bfusb_exit);
+module_usb_driver(bfusb_driver);
 
 MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
 MODULE_DESCRIPTION("BlueFRITZ! USB driver ver " VERSION);