diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-03-06 13:27:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 15:27:33 -0400 |
commit | fdd3f29eddd1b7c26b3b42e3633afcb22a28fcb3 (patch) | |
tree | bac3ce9e595e7b2cb0fcc5ff0f5c7575e0185e00 /drivers/net/wireless/hostap | |
parent | b85c4a18f6543873eaa71772f6252bc4d403eeb2 (diff) |
drivers/net: use module_pcmcia_driver() in pcmcia drivers
Use the new module_pcmcia_driver() macro to remove the boilerplate
module init/exit code in the pcmcia drivers.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index 89e9d3a78c3c..56cd01ca8ad0 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -709,17 +709,4 @@ static struct pcmcia_driver hostap_driver = { | |||
709 | .suspend = hostap_cs_suspend, | 709 | .suspend = hostap_cs_suspend, |
710 | .resume = hostap_cs_resume, | 710 | .resume = hostap_cs_resume, |
711 | }; | 711 | }; |
712 | 712 | module_pcmcia_driver(hostap_driver); | |
713 | static int __init init_prism2_pccard(void) | ||
714 | { | ||
715 | return pcmcia_register_driver(&hostap_driver); | ||
716 | } | ||
717 | |||
718 | static void __exit exit_prism2_pccard(void) | ||
719 | { | ||
720 | pcmcia_unregister_driver(&hostap_driver); | ||
721 | } | ||
722 | |||
723 | |||
724 | module_init(init_prism2_pccard); | ||
725 | module_exit(exit_prism2_pccard); | ||