Skip to content

Commit

Permalink
mmc: omap_hsmmc: convert to module_platform_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi authored and Chris Ball committed Apr 6, 2012
1 parent efa25fd commit b796450
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b796450

Please sign in to comment.