aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
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/ath/ath5k
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/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/pci.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/net/wireless/ath/ath5k/pci.c b/drivers/net/wireless/ath/ath5k/pci.c
index f8170fc9c72d..dff48fbc63bf 100644
--- a/drivers/net/wireless/ath/ath5k/pci.c
+++ b/drivers/net/wireless/ath/ath5k/pci.c
@@ -340,28 +340,4 @@ static struct pci_driver ath5k_pci_driver = {
340 .driver.pm = ATH5K_PM_OPS, 340 .driver.pm = ATH5K_PM_OPS,
341}; 341};
342 342
343/* 343module_pci_driver(ath5k_pci_driver);
344 * Module init/exit functions
345 */
346static int __init
347init_ath5k_pci(void)
348{
349 int ret;
350
351 ret = pci_register_driver(&ath5k_pci_driver);
352 if (ret) {
353 pr_err("pci: can't register pci driver\n");
354 return ret;
355 }
356
357 return 0;
358}
359
360static void __exit
361exit_ath5k_pci(void)
362{
363 pci_unregister_driver(&ath5k_pci_driver);
364}
365
366module_init(init_ath5k_pci);
367module_exit(exit_ath5k_pci);