]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: omap_hsmmc: convert to module_platform_driver
authorFelipe Balbi <balbi@ti.com>
Wed, 14 Mar 2012 09:18:32 +0000 (11:18 +0200)
committerChris Ball <cjb@laptop.org>
Mon, 2 Apr 2012 09:47:43 +0000 (05:47 -0400)
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>
drivers/mmc/host/omap_hsmmc.c

index 2aa963dcbdbd1d161f780f34820693af0098cf2c..b4c59eac348f9fffa01edc26335ab2898360b552 100644 (file)
@@ -2204,21 +2204,7 @@ static struct platform_driver omap_hsmmc_driver = {
        },
 };
 
-static int __init omap_hsmmc_init(void)
-{
-       /* Register the MMC driver */
-       return platform_driver_register(&omap_hsmmc_driver);
-}
-
-static void __exit omap_hsmmc_cleanup(void)
-{
-       /* Unregister MMC driver */
-       platform_driver_unregister(&omap_hsmmc_driver);
-}
-
-module_init(omap_hsmmc_init);
-module_exit(omap_hsmmc_cleanup);
-
+module_platform_driver(omap_hsmmc_driver);
 MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:" DRIVER_NAME);