aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/electra_cf.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-26 23:53:06 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2012-03-03 08:43:37 -0500
commit5d95f8e2dd263f3e05ae4bf9a3309552363e13af (patch)
tree547831149fd437068b919256d4a6f7e36ddc2926 /drivers/pcmcia/electra_cf.c
parentd571c79e86fa7704265b9127403a78ccd3c01729 (diff)
pcmcia: convert drivers/pcmcia/* to use module_platform_driver()
This patch converts the drivers in drivers/pcmcia/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Olof Johansson <olof@lixom.net> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Marc Zyngier <maz@misterjones.org> [for the viper part] Acked-by: Manuel Lauss <manuel.lauss@googlemail.com> [for the db1xxx_ss.c part] Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/electra_cf.c')
-rw-r--r--drivers/pcmcia/electra_cf.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/pcmcia/electra_cf.c b/drivers/pcmcia/electra_cf.c
index 06ad3e5e7d3d..7647d232e9e2 100644
--- a/drivers/pcmcia/electra_cf.c
+++ b/drivers/pcmcia/electra_cf.c
@@ -365,17 +365,7 @@ static struct platform_driver electra_cf_driver = {
365 .remove = electra_cf_remove, 365 .remove = electra_cf_remove,
366}; 366};
367 367
368static int __init electra_cf_init(void) 368module_platform_driver(electra_cf_driver);
369{
370 return platform_driver_register(&electra_cf_driver);
371}
372module_init(electra_cf_init);
373
374static void __exit electra_cf_exit(void)
375{
376 platform_driver_unregister(&electra_cf_driver);
377}
378module_exit(electra_cf_exit);
379 369
380MODULE_LICENSE("GPL"); 370MODULE_LICENSE("GPL");
381MODULE_AUTHOR ("Olof Johansson <olof@lixom.net>"); 371MODULE_AUTHOR ("Olof Johansson <olof@lixom.net>");