Commit a814a14e authored by Axel Lin's avatar Axel Lin Committed by 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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarJan Glauber <jglauber@cavium.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent b773b3bf
...@@ -342,18 +342,7 @@ static struct platform_driver octeon_mmc_driver = { ...@@ -342,18 +342,7 @@ static struct platform_driver octeon_mmc_driver = {
}, },
}; };
static int __init octeon_mmc_init(void) module_platform_driver(octeon_mmc_driver);
{
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_AUTHOR("Cavium Inc. <support@cavium.com>"); MODULE_AUTHOR("Cavium Inc. <support@cavium.com>");
MODULE_DESCRIPTION("Low-level driver for Cavium OCTEON MMC/SSD card"); MODULE_DESCRIPTION("Low-level driver for Cavium OCTEON MMC/SSD card");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment