aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-13 22:38:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-16 14:38:50 -0400
commit5b0a3b7eb37730c369cc47783549dcf6f54a1cd0 (patch)
treeb9b157758319921a6cb6dbcc5731387b8b2006d6 /drivers/net/wireless/rt2x00
parent1dae27f84baa37b76014b348985089d22d90cccc (diff)
net/wireless: use module_pci_driver
This patch converts the drivers in drivers/net/wireless/* to use module_pci_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: Jiri Slaby <jirislaby@gmail.com> Cc: Nick Kossifidis <mickflemm@gmail.com> Cc: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com> Cc: Simon Kelley <simon@thekelleys.org.uk> Cc: Jouni Malinen <j@w1.fi> Cc: Lennert Buytenhek <buytenh@wantstofly.org> Cc: Christian Lamparter <chunkeey@googlemail.com> Cc: Ivo van Doorn <IvDoorn@gmail.com> Cc: Larry Finger <Larry.Finger@lwfinger.net> Cc: linux-wireless@vger.kernel.org Acked-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c13
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c13
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c13
3 files changed, 3 insertions, 36 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index 3a6b40239bc1..5e6b50143165 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -1828,15 +1828,4 @@ static struct pci_driver rt2400pci_driver = {
1828 .resume = rt2x00pci_resume, 1828 .resume = rt2x00pci_resume,
1829}; 1829};
1830 1830
1831static int __init rt2400pci_init(void) 1831module_pci_driver(rt2400pci_driver);
1832{
1833 return pci_register_driver(&rt2400pci_driver);
1834}
1835
1836static void __exit rt2400pci_exit(void)
1837{
1838 pci_unregister_driver(&rt2400pci_driver);
1839}
1840
1841module_init(rt2400pci_init);
1842module_exit(rt2400pci_exit);
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index dcc0e1fcca77..136b849f11b5 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.c
@@ -2119,15 +2119,4 @@ static struct pci_driver rt2500pci_driver = {
2119 .resume = rt2x00pci_resume, 2119 .resume = rt2x00pci_resume,
2120}; 2120};
2121 2121
2122static int __init rt2500pci_init(void) 2122module_pci_driver(rt2500pci_driver);
2123{
2124 return pci_register_driver(&rt2500pci_driver);
2125}
2126
2127static void __exit rt2500pci_exit(void)
2128{
2129 pci_unregister_driver(&rt2500pci_driver);
2130}
2131
2132module_init(rt2500pci_init);
2133module_exit(rt2500pci_exit);
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index e0c6d117429d..ee22bd74579d 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -3092,15 +3092,4 @@ static struct pci_driver rt61pci_driver = {
3092 .resume = rt2x00pci_resume, 3092 .resume = rt2x00pci_resume,
3093}; 3093};
3094 3094
3095static int __init rt61pci_init(void) 3095module_pci_driver(rt61pci_driver);
3096{
3097 return pci_register_driver(&rt61pci_driver);
3098}
3099
3100static void __exit rt61pci_exit(void)
3101{
3102 pci_unregister_driver(&rt61pci_driver);
3103}
3104
3105module_init(rt61pci_init);
3106module_exit(rt61pci_exit);