]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/irda/mcs7780.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/apm
[karo-tx-linux.git] / drivers / net / irda / mcs7780.c
index be52bfed66a9c2246bb185fd2ca4509b0762ab05..1a00b5990cb8a0ec7beec4e5f6efe24b591cb263 100644 (file)
@@ -968,25 +968,4 @@ static void mcs_disconnect(struct usb_interface *intf)
        IRDA_DEBUG(0, "MCS7780 now disconnected.\n");
 }
 
-/* Module insertion */
-static int __init mcs_init(void)
-{
-       int result;
-
-       /* register this driver with the USB subsystem */
-       result = usb_register(&mcs_driver);
-       if (result)
-               IRDA_ERROR("usb_register failed. Error number %d\n", result);
-
-       return result;
-}
-module_init(mcs_init);
-
-/* Module removal */
-static void __exit mcs_exit(void)
-{
-       /* deregister this driver with the USB subsystem */
-       usb_deregister(&mcs_driver);
-}
-module_exit(mcs_exit);
-
+module_usb_driver(mcs_driver);