]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers/tty: use module_pcmcia_driver() in pcmcia drivers
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 6 Mar 2013 18:28:53 +0000 (11:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 19:26:38 +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/tty/serial/8250/serial_cs.c

index b7d48b346393f08e2a44c88fa0e2c99e3a9c652b..1b74b88e1e1e4ac5caab90aed58fc1a4d9cfd1d4 100644 (file)
@@ -852,18 +852,6 @@ static struct pcmcia_driver serial_cs_driver = {
        .suspend        = serial_suspend,
        .resume         = serial_resume,
 };
-
-static int __init init_serial_cs(void)
-{
-       return pcmcia_register_driver(&serial_cs_driver);
-}
-
-static void __exit exit_serial_cs(void)
-{
-       pcmcia_unregister_driver(&serial_cs_driver);
-}
-
-module_init(init_serial_cs);
-module_exit(exit_serial_cs);
+module_pcmcia_driver(serial_cs_driver);
 
 MODULE_LICENSE("GPL");