summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorVenkatraman S <svenkatr@ti.com>2012-05-08 13:35:35 +0200
committerChris Ball <cjb@laptop.org>2012-05-17 14:26:38 +0200
commit680f1b5b216af1ae051bdf237e3ea47ba9124876 (patch)
tree12610ba0c869904826e2f8504c73523e4a2c0a59 /drivers/mmc
parentmmc: omap: make it behave well as a module (diff)
downloadlinux-680f1b5b216af1ae051bdf237e3ea47ba9124876.tar.xz
linux-680f1b5b216af1ae051bdf237e3ea47ba9124876.zip
mmc: omap: convert to module_platform_driver
Get rid of boilerplate code by using module_platform_driver macro, no functional changes. Signed-off-by: Venkatraman S <svenkatr@ti.com> Acked-by: Balaji T K <balajitk@ti.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/omap.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c
index 0056bd8acc83..552196c764d4 100644
--- a/drivers/mmc/host/omap.c
+++ b/drivers/mmc/host/omap.c
@@ -1614,19 +1614,7 @@ static struct platform_driver mmc_omap_driver = {
},
};
-static int __init mmc_omap_init(void)
-{
- return platform_driver_register(&mmc_omap_driver);
-}
-
-static void __exit mmc_omap_exit(void)
-{
- platform_driver_unregister(&mmc_omap_driver);
-}
-
-module_init(mmc_omap_init);
-module_exit(mmc_omap_exit);
-
+module_platform_driver(mmc_omap_driver);
MODULE_DESCRIPTION("OMAP Multimedia Card driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRIVER_NAME);