]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers/isdn: use module_pcmcia_driver() in pcmcia drivers
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 6 Mar 2013 18:26:50 +0000 (11:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 19:26:04 +0000 (12:26 -0700)
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>
drivers/isdn/hardware/avm/avm_cs.c
drivers/isdn/hisax/avma1_cs.c
drivers/isdn/hisax/elsa_cs.c
drivers/isdn/hisax/sedlbauer_cs.c
drivers/isdn/hisax/teles_cs.c

index c21353d8e91562f9318f948aa2dc4cf49ab33546..62b8030ee331a7587fb96a827a3457551e83b3e2 100644 (file)
@@ -163,16 +163,4 @@ static struct pcmcia_driver avmcs_driver = {
        .remove = avmcs_detach,
        .id_table = avmcs_ids,
 };
-
-static int __init avmcs_init(void)
-{
-       return pcmcia_register_driver(&avmcs_driver);
-}
-
-static void __exit avmcs_exit(void)
-{
-       pcmcia_unregister_driver(&avmcs_driver);
-}
-
-module_init(avmcs_init);
-module_exit(avmcs_exit);
+module_pcmcia_driver(avmcs_driver);
index 4e676bcf85062c1049077fa6d724a6bef5e2a804..baad94ec1f4ac84a3b499999ae07afcb438cc2fc 100644 (file)
@@ -159,16 +159,4 @@ static struct pcmcia_driver avma1cs_driver = {
        .remove         = avma1cs_detach,
        .id_table       = avma1cs_ids,
 };
-
-static int __init init_avma1_cs(void)
-{
-       return pcmcia_register_driver(&avma1cs_driver);
-}
-
-static void __exit exit_avma1_cs(void)
-{
-       pcmcia_unregister_driver(&avma1cs_driver);
-}
-
-module_init(init_avma1_cs);
-module_exit(exit_avma1_cs);
+module_pcmcia_driver(avma1cs_driver);
index ebe56918f6fc5e0bbd52d2a4ca6231c41cd83fc1..40f6fad79de349b2d6ae569beee924466b9a91c9 100644 (file)
@@ -215,16 +215,4 @@ static struct pcmcia_driver elsa_cs_driver = {
        .suspend        = elsa_suspend,
        .resume         = elsa_resume,
 };
-
-static int __init init_elsa_cs(void)
-{
-       return pcmcia_register_driver(&elsa_cs_driver);
-}
-
-static void __exit exit_elsa_cs(void)
-{
-       pcmcia_unregister_driver(&elsa_cs_driver);
-}
-
-module_init(init_elsa_cs);
-module_exit(exit_elsa_cs);
+module_pcmcia_driver(elsa_cs_driver);
index 90f81291641b714f45236b698b2caf54b5d1624a..92ef62d4caf4589203b753b7fa250caf93093873 100644 (file)
@@ -206,16 +206,4 @@ static struct pcmcia_driver sedlbauer_driver = {
        .suspend        = sedlbauer_suspend,
        .resume         = sedlbauer_resume,
 };
-
-static int __init init_sedlbauer_cs(void)
-{
-       return pcmcia_register_driver(&sedlbauer_driver);
-}
-
-static void __exit exit_sedlbauer_cs(void)
-{
-       pcmcia_unregister_driver(&sedlbauer_driver);
-}
-
-module_init(init_sedlbauer_cs);
-module_exit(exit_sedlbauer_cs);
+module_pcmcia_driver(sedlbauer_driver);
index f2476ffb04fda65d87d146b8729c1ac9080db153..b8dd14958757b47698a166973862710bbb722066 100644 (file)
@@ -197,16 +197,4 @@ static struct pcmcia_driver teles_cs_driver = {
        .suspend        = teles_suspend,
        .resume         = teles_resume,
 };
-
-static int __init init_teles_cs(void)
-{
-       return pcmcia_register_driver(&teles_cs_driver);
-}
-
-static void __exit exit_teles_cs(void)
-{
-       pcmcia_unregister_driver(&teles_cs_driver);
-}
-
-module_init(init_teles_cs);
-module_exit(exit_teles_cs);
+module_pcmcia_driver(teles_cs_driver);