summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-05 04:54:06 +0100
committerChris Ball <cjb@laptop.org>2013-03-22 17:29:12 +0100
commit4a2d8ecce0be8240618e133077724abb5b36c1ef (patch)
tree728dd6a220cb8862e87c078de082bfce991ee3ab /drivers/mmc
parentmmc: davinci_mmc: use module_platform_driver_probe() (diff)
downloadlinux-4a2d8ecce0be8240618e133077724abb5b36c1ef.tar.xz
linux-4a2d8ecce0be8240618e133077724abb5b36c1ef.zip
mmc: mvsdio: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/mvsdio.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c
index 145cdaf000d1..2b7d5b72c7bb 100644
--- a/drivers/mmc/host/mvsdio.c
+++ b/drivers/mmc/host/mvsdio.c
@@ -881,18 +881,7 @@ static struct platform_driver mvsd_driver = {
},
};
-static int __init mvsd_init(void)
-{
- return platform_driver_probe(&mvsd_driver, mvsd_probe);
-}
-
-static void __exit mvsd_exit(void)
-{
- platform_driver_unregister(&mvsd_driver);
-}
-
-module_init(mvsd_init);
-module_exit(mvsd_exit);
+module_platform_driver_probe(mvsd_driver, mvsd_probe);
/* maximum card clock frequency (default 50MHz) */
module_param(maxfreq, int, 0);