diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-26 23:53:06 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2012-03-03 08:43:37 -0500 |
commit | 5d95f8e2dd263f3e05ae4bf9a3309552363e13af (patch) | |
tree | 547831149fd437068b919256d4a6f7e36ddc2926 /drivers/pcmcia/db1xxx_ss.c | |
parent | d571c79e86fa7704265b9127403a78ccd3c01729 (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/db1xxx_ss.c')
-rw-r--r-- | drivers/pcmcia/db1xxx_ss.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/pcmcia/db1xxx_ss.c b/drivers/pcmcia/db1xxx_ss.c index deb348cf573e..a484b1fb3382 100644 --- a/drivers/pcmcia/db1xxx_ss.c +++ b/drivers/pcmcia/db1xxx_ss.c | |||
@@ -580,18 +580,7 @@ static struct platform_driver db1x_pcmcia_socket_driver = { | |||
580 | .remove = __devexit_p(db1x_pcmcia_socket_remove), | 580 | .remove = __devexit_p(db1x_pcmcia_socket_remove), |
581 | }; | 581 | }; |
582 | 582 | ||
583 | int __init db1x_pcmcia_socket_load(void) | 583 | module_platform_driver(db1x_pcmcia_socket_driver); |
584 | { | ||
585 | return platform_driver_register(&db1x_pcmcia_socket_driver); | ||
586 | } | ||
587 | |||
588 | void __exit db1x_pcmcia_socket_unload(void) | ||
589 | { | ||
590 | platform_driver_unregister(&db1x_pcmcia_socket_driver); | ||
591 | } | ||
592 | |||
593 | module_init(db1x_pcmcia_socket_load); | ||
594 | module_exit(db1x_pcmcia_socket_unload); | ||
595 | 584 | ||
596 | MODULE_LICENSE("GPL"); | 585 | MODULE_LICENSE("GPL"); |
597 | MODULE_DESCRIPTION("PCMCIA Socket Services for Alchemy Db/Pb1x00 boards"); | 586 | MODULE_DESCRIPTION("PCMCIA Socket Services for Alchemy Db/Pb1x00 boards"); |