diff options
author | Axel Lin <axel.lin@ingics.com> | 2017-08-19 16:06:11 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-08-30 16:03:38 +0300 |
commit | a814a14ea44d4415ee193985ecb744de320739e5 (patch) | |
tree | 172e33193243f7b393fcd5c32a3b417b4fe6a3cb /drivers/mmc/host/cavium-octeon.c | |
parent | b773b3bf1916a368c29a19916abf0f5eca8b3c33 (diff) | |
download | linux-a814a14ea44d4415ee193985ecb744de320739e5.tar.xz |
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>
Diffstat (limited to 'drivers/mmc/host/cavium-octeon.c')
-rw-r--r-- | drivers/mmc/host/cavium-octeon.c | 13 |
1 files changed, 1 insertions, 12 deletions
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. <support@cavium.com>"); MODULE_DESCRIPTION("Low-level driver for Cavium OCTEON MMC/SSD card"); |