aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/3com
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-03-06 13:27:43 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 15:27:33 -0400
commitfdd3f29eddd1b7c26b3b42e3633afcb22a28fcb3 (patch)
treebac3ce9e595e7b2cb0fcc5ff0f5c7575e0185e00 /drivers/net/ethernet/3com
parentb85c4a18f6543873eaa71772f6252bc4d403eeb2 (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/ethernet/3com')
-rw-r--r--drivers/net/ethernet/3com/3c574_cs.c14
-rw-r--r--drivers/net/ethernet/3com/3c589_cs.c14
2 files changed, 2 insertions, 26 deletions
diff --git a/drivers/net/ethernet/3com/3c574_cs.c b/drivers/net/ethernet/3com/3c574_cs.c
index ffd8de28a76a..6fc994fa4abe 100644
--- a/drivers/net/ethernet/3com/3c574_cs.c
+++ b/drivers/net/ethernet/3com/3c574_cs.c
@@ -1165,16 +1165,4 @@ static struct pcmcia_driver tc574_driver = {
1165 .suspend = tc574_suspend, 1165 .suspend = tc574_suspend,
1166 .resume = tc574_resume, 1166 .resume = tc574_resume,
1167}; 1167};
1168 1168module_pcmcia_driver(tc574_driver);
1169static int __init init_tc574(void)
1170{
1171 return pcmcia_register_driver(&tc574_driver);
1172}
1173
1174static void __exit exit_tc574(void)
1175{
1176 pcmcia_unregister_driver(&tc574_driver);
1177}
1178
1179module_init(init_tc574);
1180module_exit(exit_tc574);
diff --git a/drivers/net/ethernet/3com/3c589_cs.c b/drivers/net/ethernet/3com/3c589_cs.c
index a556c01e011b..078480aaa168 100644
--- a/drivers/net/ethernet/3com/3c589_cs.c
+++ b/drivers/net/ethernet/3com/3c589_cs.c
@@ -928,16 +928,4 @@ static struct pcmcia_driver tc589_driver = {
928 .suspend = tc589_suspend, 928 .suspend = tc589_suspend,
929 .resume = tc589_resume, 929 .resume = tc589_resume,
930}; 930};
931 931module_pcmcia_driver(tc589_driver);
932static int __init init_tc589(void)
933{
934 return pcmcia_register_driver(&tc589_driver);
935}
936
937static void __exit exit_tc589(void)
938{
939 pcmcia_unregister_driver(&tc589_driver);
940}
941
942module_init(init_tc589);
943module_exit(exit_tc589);