diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-03-06 19:27:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 20:27:33 +0100 |
commit | fdd3f29eddd1b7c26b3b42e3633afcb22a28fcb3 (patch) | |
tree | bac3ce9e595e7b2cb0fcc5ff0f5c7575e0185e00 /drivers/net/wireless/airo_cs.c | |
parent | sound/pcmcia: use module_pcmcia_driver() in pcmcia drivers (diff) | |
download | linux-fdd3f29eddd1b7c26b3b42e3633afcb22a28fcb3.tar.xz linux-fdd3f29eddd1b7c26b3b42e3633afcb22a28fcb3.zip |
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/airo_cs.c')
-rw-r--r-- | drivers/net/wireless/airo_cs.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c index 956024a636e6..14128fd265ac 100644 --- a/drivers/net/wireless/airo_cs.c +++ b/drivers/net/wireless/airo_cs.c @@ -180,16 +180,7 @@ static struct pcmcia_driver airo_driver = { .suspend = airo_suspend, .resume = airo_resume, }; - -static int __init airo_cs_init(void) -{ - return pcmcia_register_driver(&airo_driver); -} - -static void __exit airo_cs_cleanup(void) -{ - pcmcia_unregister_driver(&airo_driver); -} +module_pcmcia_driver(airo_driver); /* This program is free software; you can redistribute it and/or @@ -229,6 +220,3 @@ static void __exit airo_cs_cleanup(void) IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -module_init(airo_cs_init); -module_exit(airo_cs_cleanup); |