提交 a814a14e 编写于 作者: A Axel Lin 提交者: Ulf Hansson

mmc: cavium-octeon: Convert to use module_platform_driver

Get rid of boilerplate code by using module_platform_driver macro.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NJan Glauber <jglauber@cavium.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 b773b3bf
......@@ -342,18 +342,7 @@ static struct platform_driver octeon_mmc_driver = {
},
};
static int __init octeon_mmc_init(void)
{
return platform_driver_register(&octeon_mmc_driver);
}
static void __exit octeon_mmc_cleanup(void)
{
platform_driver_unregister(&octeon_mmc_driver);
}
module_init(octeon_mmc_init);
module_exit(octeon_mmc_cleanup);
module_platform_driver(octeon_mmc_driver);
MODULE_AUTHOR("Cavium Inc. <support@cavium.com>");
MODULE_DESCRIPTION("Low-level driver for Cavium OCTEON MMC/SSD card");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册