softingcs: use module_pcmcia_driver
authorKurt Van Dijck <kurt.van.dijck@eia.be>
Thu, 7 Mar 2013 12:28:18 +0000 (13:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 19:30:15 +0000 (12:30 -0700)
Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/softing/softing_cs.c

index 77620543cd911c2fcb390c46ca912f19cc922721..738355c127446ac01e68d58e3f344ba3642be15b 100644 (file)
@@ -340,18 +340,7 @@ static struct pcmcia_driver softingcs_driver = {
        .remove         = softingcs_remove,
 };
 
-static int __init softingcs_start(void)
-{
-       return pcmcia_register_driver(&softingcs_driver);
-}
-
-static void __exit softingcs_stop(void)
-{
-       pcmcia_unregister_driver(&softingcs_driver);
-}
-
-module_init(softingcs_start);
-module_exit(softingcs_stop);
+module_pcmcia_driver(&softingcs_driver);
 
 MODULE_DESCRIPTION("softing CANcard driver"
                ", links PCMCIA card to softing driver");