aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGabor Juhos2013-10-17 09:42:35 +0200
committerJohn W. Linville2013-10-18 14:07:00 -0400
commita1b13b9ad3759dca24c6b721ee026c540a4e6564 (patch)
treea4bdd4ee371b74d81311c98e03f3131b3b8675dd /drivers
parentfe7ef7c60c33fd339f40320fae76bc56d368dae5 (diff)
rt2x00: rt2800pci: use module_pci_driver macro
Use the module_pci_driver() macro to make the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 260d2fdadc76..b504455b4fec 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -470,16 +470,4 @@ static struct pci_driver rt2800pci_driver = {
.resume = rt2x00pci_resume,
};
-
-static int __init rt2800pci_init(void)
-{
- return pci_register_driver(&rt2800pci_driver);
-}
-
-static void __exit rt2800pci_exit(void)
-{
- pci_unregister_driver(&rt2800pci_driver);
-}
-
-module_init(rt2800pci_init);
-module_exit(rt2800pci_exit);
+module_pci_driver(rt2800pci_driver);