summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/at91_cf.c
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2013-06-06 10:24:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-06 12:57:42 -0700
commit43f50752256d8374602559832eaddd0cbf5aad64 (patch)
tree671e560313d47c750411fdd1be828921bb1361a9 /drivers/pcmcia/at91_cf.c
parented9084ecfccae55ea45c7f068d1f513b979a0132 (diff)
downloadlinux-43f50752256d8374602559832eaddd0cbf5aad64.tar.gz
linux-43f50752256d8374602559832eaddd0cbf5aad64.tar.bz2
linux-43f50752256d8374602559832eaddd0cbf5aad64.zip
pcmcia: at91_cf: use module_platform_driver_probe()
Use module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia/at91_cf.c')
-rw-r--r--drivers/pcmcia/at91_cf.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c
index 149b95c957da..8ddc57c5bc47 100644
--- a/drivers/pcmcia/at91_cf.c
+++ b/drivers/pcmcia/at91_cf.c
@@ -411,17 +411,7 @@ static struct platform_driver at91_cf_driver = {
/*--------------------------------------------------------------------------*/
-static int __init at91_cf_init(void)
-{
- return platform_driver_probe(&at91_cf_driver, at91_cf_probe);
-}
-module_init(at91_cf_init);
-
-static void __exit at91_cf_exit(void)
-{
- platform_driver_unregister(&at91_cf_driver);
-}
-module_exit(at91_cf_exit);
+module_platform_driver_probe(at91_cf_driver, at91_cf_probe);
MODULE_DESCRIPTION("AT91 Compact Flash Driver");
MODULE_AUTHOR("David Brownell");