[PATCH 06/11] drivers/net: use module_pcmcia_driver() in pcmcia drivers
Kurt Van Dijck
kurt.van.dijck at eia.be
Thu Mar 7 07:28:18 EST 2013
As promised, a patch that will apply afther modifying the spinlock initializer.
--
commit 7e82c8d4f4fd2eb503952f0ce8186a4fa606f084
Author: Kurt Van Dijck <kurt.van.dijck at eia.be>
Date: Thu Mar 7 13:21:20 2013
softingcs: use module_pcmcia_driver
Signed-off-by: Kurt Van Dijck <kurt.van.dijck at eia.be>
diff --git a/drivers/net/can/softing/softing_cs.c b/drivers/net/can/softing/softing_cs.c
index 5dec2db..993d83e 100644
--- a/drivers/net/can/softing/softing_cs.c
+++ b/drivers/net/can/softing/softing_cs.c
@@ -341,18 +341,7 @@ static struct pcmcia_driver softingcs_driver = {
.remove = __devexit_p(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");
More information about the linux-pcmcia
mailing list