From: Axel Lin Date: Sat, 19 Aug 2017 13:06:11 +0000 (+0800) Subject: mmc: cavium-octeon: Convert to use module_platform_driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a814a14ea44d4415ee193985ecb744de320739e5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Jan Glauber Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/cavium-octeon.c b/drivers/mmc/host/cavium-octeon.c index 951d2cdd7888..22aded1065ae 100644 --- a/drivers/mmc/host/cavium-octeon.c +++ b/drivers/mmc/host/cavium-octeon.c @@ -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. "); MODULE_DESCRIPTION("Low-level driver for Cavium OCTEON MMC/SSD card");