Skip to content

Commit

Permalink
mmc: cavium-octeon: Convert to use module_platform_driver
Browse files Browse the repository at this point in the history
Get rid of boilerplate code by using module_platform_driver macro.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Jan Glauber <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
AxelLin authored and storulf committed Aug 30, 2017
1 parent b773b3b commit a814a14
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/mmc/host/cavium-octeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. <[email protected]>");
MODULE_DESCRIPTION("Low-level driver for Cavium OCTEON MMC/SSD card");
Expand Down

0 comments on commit a814a14

Please sign in to comment.