diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-26 12:55:43 +0800 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-01-11 23:58:42 -0500 |
commit | d1f81a64a4250bdd776978be06ae2b8e13ec7471 (patch) | |
tree | a7b0801bdebfdc34bc31ffac7d5fbd11647ec3c7 /drivers/mmc/host/s3cmci.c | |
parent | 6601056a96034fa08120b10b8dc728f213f91ec4 (diff) | |
download | linux-d1f81a64a4250bdd776978be06ae2b8e13ec7471.tar.gz linux-d1f81a64a4250bdd776978be06ae2b8e13ec7471.tar.bz2 linux-d1f81a64a4250bdd776978be06ae2b8e13ec7471.zip |
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/s3cmci.c')
-rw-r--r-- | drivers/mmc/host/s3cmci.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 720f99334a7f..1bcfd6dbb5cc 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -1914,18 +1914,7 @@ static struct platform_driver s3cmci_driver = { .shutdown = s3cmci_shutdown, }; -static int __init s3cmci_init(void) -{ - return platform_driver_register(&s3cmci_driver); -} - -static void __exit s3cmci_exit(void) -{ - platform_driver_unregister(&s3cmci_driver); -} - -module_init(s3cmci_init); -module_exit(s3cmci_exit); +module_platform_driver(s3cmci_driver); MODULE_DESCRIPTION("Samsung S3C MMC/SD Card Interface driver"); MODULE_LICENSE("GPL v2"); |