提交 b796450b 编写于 作者: F Felipe Balbi 提交者: Chris Ball

mmc: omap_hsmmc: convert to module_platform_driver

This will delete some boilerplate code, no functional changes.
Signed-off-by: NFelipe Balbi <balbi@ti.com>
Signed-off-by: NVenkatraman S <svenkatr@ti.com>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 efa25fd3
...@@ -2204,21 +2204,7 @@ static struct platform_driver omap_hsmmc_driver = { ...@@ -2204,21 +2204,7 @@ static struct platform_driver omap_hsmmc_driver = {
}, },
}; };
static int __init omap_hsmmc_init(void) module_platform_driver(omap_hsmmc_driver);
{
/* 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_DESCRIPTION("OMAP High Speed Multimedia Card driver"); MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRIVER_NAME); MODULE_ALIAS("platform:" DRIVER_NAME);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册