aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-03-14 05:18:32 -0400
committerChris Ball <cjb@laptop.org>2012-04-05 20:32:29 -0400
commitb796450b4590dbaee2d31c85b04791cafacff9b4 (patch)
treec640f05cff36afbb04e6f908fe9584df19c37f30 /drivers
parentefa25fd3a33275861aa74ff03a512423873a8805 (diff)
mmc: omap_hsmmc: convert to module_platform_driver
This will delete some boilerplate code, no functional changes. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Venkatraman S <svenkatr@ti.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/omap_hsmmc.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 2aa963dcbdbd..b4c59eac348f 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -2204,21 +2204,7 @@ static struct platform_driver omap_hsmmc_driver = {
2204 }, 2204 },
2205}; 2205};
2206 2206
2207static int __init omap_hsmmc_init(void) 2207module_platform_driver(omap_hsmmc_driver);
2208{
2209 /* Register the MMC driver */
2210 return platform_driver_register(&omap_hsmmc_driver);
2211}
2212
2213static void __exit omap_hsmmc_cleanup(void)
2214{
2215 /* Unregister MMC driver */
2216 platform_driver_unregister(&omap_hsmmc_driver);
2217}
2218
2219module_init(omap_hsmmc_init);
2220module_exit(omap_hsmmc_cleanup);
2221
2222MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver"); 2208MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver");
2223MODULE_LICENSE("GPL"); 2209MODULE_LICENSE("GPL");
2224MODULE_ALIAS("platform:" DRIVER_NAME); 2210MODULE_ALIAS("platform:" DRIVER_NAME);