]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/libertas/if_usb.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[karo-tx-linux.git] / drivers / net / wireless / libertas / if_usb.c
index db879c364ebf93e93c218e65d344a78ebb3aee92..b5fbbc7947dfc89738f08a4d18663f739d1ef2a7 100644 (file)
@@ -1184,29 +1184,7 @@ static struct usb_driver if_usb_driver = {
        .reset_resume = if_usb_resume,
 };
 
-static int __init if_usb_init_module(void)
-{
-       int ret = 0;
-
-       lbs_deb_enter(LBS_DEB_MAIN);
-
-       ret = usb_register(&if_usb_driver);
-
-       lbs_deb_leave_args(LBS_DEB_MAIN, "ret %d", ret);
-       return ret;
-}
-
-static void __exit if_usb_exit_module(void)
-{
-       lbs_deb_enter(LBS_DEB_MAIN);
-
-       usb_deregister(&if_usb_driver);
-
-       lbs_deb_leave(LBS_DEB_MAIN);
-}
-
-module_init(if_usb_init_module);
-module_exit(if_usb_exit_module);
+module_usb_driver(if_usb_driver);
 
 MODULE_DESCRIPTION("8388 USB WLAN Driver");
 MODULE_AUTHOR("Marvell International Ltd. and Red Hat, Inc.");