diff options
author | Felipe Balbi <balbi@ti.com> | 2012-03-14 10:18:32 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-04-06 02:32:29 +0200 |
commit | b796450b4590dbaee2d31c85b04791cafacff9b4 (patch) | |
tree | c640f05cff36afbb04e6f908fe9584df19c37f30 /drivers/mmc/host/omap_hsmmc.c | |
parent | mmc: omap_hsmmc: make it behave well as a module (diff) | |
download | linux-b796450b4590dbaee2d31c85b04791cafacff9b4.tar.xz linux-b796450b4590dbaee2d31c85b04791cafacff9b4.zip |
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 '')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 16 |
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 = { }, }; -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); |