diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-13 22:38:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-16 14:38:50 -0400 |
commit | 5b0a3b7eb37730c369cc47783549dcf6f54a1cd0 (patch) | |
tree | b9b157758319921a6cb6dbcc5731387b8b2006d6 /drivers/net/wireless/hostap/hostap_pci.c | |
parent | 1dae27f84baa37b76014b348985089d22d90cccc (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/hostap/hostap_pci.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_pci.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/net/wireless/hostap/hostap_pci.c b/drivers/net/wireless/hostap/hostap_pci.c index 972a9c3af39e..05ca3402dca7 100644 --- a/drivers/net/wireless/hostap/hostap_pci.c +++ b/drivers/net/wireless/hostap/hostap_pci.c | |||
@@ -457,18 +457,4 @@ static struct pci_driver prism2_pci_driver = { | |||
457 | #endif /* CONFIG_PM */ | 457 | #endif /* CONFIG_PM */ |
458 | }; | 458 | }; |
459 | 459 | ||
460 | 460 | module_pci_driver(prism2_pci_driver); | |
461 | static int __init init_prism2_pci(void) | ||
462 | { | ||
463 | return pci_register_driver(&prism2_pci_driver); | ||
464 | } | ||
465 | |||
466 | |||
467 | static void __exit exit_prism2_pci(void) | ||
468 | { | ||
469 | pci_unregister_driver(&prism2_pci_driver); | ||
470 | } | ||
471 | |||
472 | |||
473 | module_init(init_prism2_pci); | ||
474 | module_exit(exit_prism2_pci); | ||