Skip to content

Commit a814a14

Browse files
AxelLinUlf Hansson
authored andcommitted
mmc: cavium-octeon: Convert to use module_platform_driver
Get rid of boilerplate code by using module_platform_driver macro. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent b773b3b commit a814a14

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

‎drivers/mmc/host/cavium-octeon.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -342,18 +342,7 @@ static struct platform_driver octeon_mmc_driver = {
342342
},
343343
};
344344

345-
static int __init octeon_mmc_init(void)
346-
{
347-
return platform_driver_register(&octeon_mmc_driver);
348-
}
349-
350-
static void __exit octeon_mmc_cleanup(void)
351-
{
352-
platform_driver_unregister(&octeon_mmc_driver);
353-
}
354-
355-
module_init(octeon_mmc_init);
356-
module_exit(octeon_mmc_cleanup);
345+
module_platform_driver(octeon_mmc_driver);
357346

358347
MODULE_AUTHOR("Cavium Inc. <support@cavium.com>");
359348
MODULE_DESCRIPTION("Low-level driver for Cavium OCTEON MMC/SSD card");

0 commit comments

Comments
 (0)