summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ar5523/ar5523.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ar5523/ar5523.c b/drivers/net/wireless/ath/ar5523/ar5523.c
index f782b6e502bf..402e6d378b2c 100644
--- a/drivers/net/wireless/ath/ar5523/ar5523.c
+++ b/drivers/net/wireless/ath/ar5523/ar5523.c
@@ -1789,18 +1789,7 @@ static struct usb_driver ar5523_driver = {
.disconnect = ar5523_disconnect,
};
-static int __init ar5523_init(void)
-{
- return usb_register(&ar5523_driver);
-}
-
-static void __exit ar5523_exit(void)
-{
- usb_deregister(&ar5523_driver);
-}
+module_usb_driver(ar5523_driver);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_FIRMWARE(AR5523_FIRMWARE_FILE);
-
-module_init(ar5523_init);
-module_exit(ar5523_exit);