summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xircom
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-03-06 19:27:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 20:27:33 +0100
commitfdd3f29eddd1b7c26b3b42e3633afcb22a28fcb3 (patch)
treebac3ce9e595e7b2cb0fcc5ff0f5c7575e0185e00 /drivers/net/ethernet/xircom
parentsound/pcmcia: use module_pcmcia_driver() in pcmcia drivers (diff)
downloadlinux-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/ethernet/xircom')
-rw-r--r--drivers/net/ethernet/xircom/xirc2ps_cs.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/net/ethernet/xircom/xirc2ps_cs.c b/drivers/net/ethernet/xircom/xirc2ps_cs.c
index 98e09d0d3ce2..1025b4e937d2 100644
--- a/drivers/net/ethernet/xircom/xirc2ps_cs.c
+++ b/drivers/net/ethernet/xircom/xirc2ps_cs.c
@@ -1775,21 +1775,7 @@ static struct pcmcia_driver xirc2ps_cs_driver = {
.suspend = xirc2ps_suspend,
.resume = xirc2ps_resume,
};
-
-static int __init
-init_xirc2ps_cs(void)
-{
- return pcmcia_register_driver(&xirc2ps_cs_driver);
-}
-
-static void __exit
-exit_xirc2ps_cs(void)
-{
- pcmcia_unregister_driver(&xirc2ps_cs_driver);
-}
-
-module_init(init_xirc2ps_cs);
-module_exit(exit_xirc2ps_cs);
+module_pcmcia_driver(xirc2ps_cs_driver);
#ifndef MODULE
static int __init setup_xirc2ps_cs(char *str)