staging: rtl8188eu: Use module_usb_driver() macro
authornavin patidar <navin.patidar@gmail.com>
Sun, 1 Jun 2014 12:16:34 +0000 (17:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:30:02 +0000 (15:30 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index d33aeb9aa68416dfe5f0c2714a8f960cfd0a10c6..21bf74d4137280b256c61876ad26a25aa42ad287 100644 (file)
@@ -718,24 +718,4 @@ static void rtw_dev_remove(struct usb_interface *pusb_intf)
        return;
 }
 
-static int __init rtw_drv_entry(void)
-{
-       RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_entry\n"));
-
-       DBG_88E(DRV_NAME " driver version=%s\n", DRIVERVERSION);
-
-       return usb_register(&rtl8188e_usb_drv);
-}
-
-static void __exit rtw_drv_halt(void)
-{
-       RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_halt\n"));
-       DBG_88E("+rtw_drv_halt\n");
-
-       usb_deregister(&rtl8188e_usb_drv);
-
-       DBG_88E("-rtw_drv_halt\n");
-}
-
-module_init(rtw_drv_entry);
-module_exit(rtw_drv_halt);
+module_usb_driver(rtl8188e_usb_drv)