aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-s3c.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 23:55:43 -0500
committerChris Ball <cjb@laptop.org>2012-01-11 23:58:42 -0500
commitd1f81a64a4250bdd776978be06ae2b8e13ec7471 (patch)
treea7b0801bdebfdc34bc31ffac7d5fbd11647ec3c7 /drivers/mmc/host/sdhci-s3c.c
parent6601056a96034fa08120b10b8dc728f213f91ec4 (diff)
mmc: convert drivers/mmc/host/* to use module_platform_driver()
This patch converts the drivers in drivers/mmc/host/* 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: "Michał Mirosław" <mirq-linux@rere.qmqm.pl> Acked-by: David Brown <davidb@codeaurora.org> Acked-by: Viresh Kumar <viresh.kumar@st.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-s3c.c')
-rw-r--r--drivers/mmc/host/sdhci-s3c.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
index 0d33ff0d67fb..55c1e870da83 100644
--- a/drivers/mmc/host/sdhci-s3c.c
+++ b/drivers/mmc/host/sdhci-s3c.c
@@ -657,18 +657,7 @@ static struct platform_driver sdhci_s3c_driver = {
657 }, 657 },
658}; 658};
659 659
660static int __init sdhci_s3c_init(void) 660module_platform_driver(sdhci_s3c_driver);
661{
662 return platform_driver_register(&sdhci_s3c_driver);
663}
664
665static void __exit sdhci_s3c_exit(void)
666{
667 platform_driver_unregister(&sdhci_s3c_driver);
668}
669
670module_init(sdhci_s3c_init);
671module_exit(sdhci_s3c_exit);
672 661
673MODULE_DESCRIPTION("Samsung SDHCI (HSMMC) glue"); 662MODULE_DESCRIPTION("Samsung SDHCI (HSMMC) glue");
674MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); 663MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");