]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/irda/irda-usb.c
Merge tag 'md-3.3' of git://neil.brown.name/md
[karo-tx-linux.git] / drivers / net / irda / irda-usb.c
index d9267cb98a236f739e8947bc567627fb44a544f8..72f687b40d66739c73a62f56a8c1c81bbe8ab03b 100644 (file)
@@ -1914,41 +1914,8 @@ static struct usb_driver irda_driver = {
 #endif
 };
 
-/************************* MODULE CALLBACKS *************************/
-/*
- * Deal with module insertion/removal
- * Mostly tell USB about our existence
- */
-
-/*------------------------------------------------------------------*/
-/*
- * Module insertion
- */
-static int __init usb_irda_init(void)
-{
-       int     ret;
-
-       ret = usb_register(&irda_driver);
-       if (ret < 0)
-               return ret;
-
-       IRDA_MESSAGE("USB IrDA support registered\n");
-       return 0;
-}
-module_init(usb_irda_init);
+module_usb_driver(irda_driver);
 
-/*------------------------------------------------------------------*/
-/*
- * Module removal
- */
-static void __exit usb_irda_cleanup(void)
-{
-       /* Deregister the driver and remove all pending instances */
-       usb_deregister(&irda_driver);
-}
-module_exit(usb_irda_cleanup);
-
-/*------------------------------------------------------------------*/
 /*
  * Module parameters
  */