Skip to content

Commit

Permalink
mmc: omap: convert to 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,
no functional changes.

Signed-off-by: Venkatraman S <svenkatr@ti.com>
Acked-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Venkatraman S authored and Chris Ball committed May 17, 2012
1 parent b6e0703 commit 680f1b5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/mmc/host/omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1614,19 +1614,7 @@ static struct platform_driver mmc_omap_driver = {
},
};

static int __init mmc_omap_init(void)
{
return platform_driver_register(&mmc_omap_driver);
}

static void __exit mmc_omap_exit(void)
{
platform_driver_unregister(&mmc_omap_driver);
}

module_init(mmc_omap_init);
module_exit(mmc_omap_exit);

module_platform_driver(mmc_omap_driver);
MODULE_DESCRIPTION("OMAP Multimedia Card driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRIVER_NAME);
Expand Down

0 comments on commit 680f1b5

Please sign in to comment.