USB: convert some miscellanies drivers to use module_usb_driver()
[deliverable/linux.git] / drivers / isdn / hardware / mISDN / hfcsusb.c
index 71a8eb6ef71ead7efca9b247f205aef4cca86817..0e1f4d5b97749493efee0a467e9a8583647d787f 100644 (file)
@@ -2154,30 +2154,4 @@ static struct usb_driver hfcsusb_drv = {
        .disconnect = hfcsusb_disconnect,
 };
 
-static int __init
-hfcsusb_init(void)
-{
-       printk(KERN_INFO DRIVER_NAME " driver Rev. %s debug(0x%x) poll(%i)\n",
-           hfcsusb_rev, debug, poll);
-
-       if (usb_register(&hfcsusb_drv)) {
-               printk(KERN_INFO DRIVER_NAME
-                   ": Unable to register hfcsusb module at usb stack\n");
-               return -ENODEV;
-       }
-
-       return 0;
-}
-
-static void __exit
-hfcsusb_cleanup(void)
-{
-       if (debug & DBG_HFC_CALL_TRACE)
-               printk(KERN_INFO DRIVER_NAME ": %s\n", __func__);
-
-       /* unregister Hardware */
-       usb_deregister(&hfcsusb_drv);   /* release our driver */
-}
-
-module_init(hfcsusb_init);
-module_exit(hfcsusb_cleanup);
+module_usb_driver(hfcsusb_drv);
This page took 0.033043 seconds and 5 git commands to generate.