Staging: ft1000: Use module_pcmcia_driver
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 12 Mar 2015 11:58:54 +0000 (17:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:17:31 +0000 (16:17 +0100)
Macro module_pcmcia_driver is used for drivers whose init
and exit paths does only register and unregister to pcmcia
API. So, here remove some boilerplate code by using
module_pcmcia_driver.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c

index 922478e1cb576cd87a41ae70e544318910b40ff7..e5cc5bedf031e3f061d04c4aab8f80b6ec47cde4 100644 (file)
@@ -155,15 +155,4 @@ static struct pcmcia_driver ft1000_cs_driver = {
        .resume         = ft1000_resume,
 };
 
-static int __init init_ft1000_cs(void)
-{
-       return pcmcia_register_driver(&ft1000_cs_driver);
-}
-
-static void __exit exit_ft1000_cs(void)
-{
-       pcmcia_unregister_driver(&ft1000_cs_driver);
-}
-
-module_init(init_ft1000_cs);
-module_exit(exit_ft1000_cs);
+module_pcmcia_driver(ft1000_cs_driver);