Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 680f1b5b authored by Venkatraman S's avatar Venkatraman S Committed by Chris Ball
Browse files

mmc: omap: convert to module_platform_driver



Get rid of boilerplate code by using module_platform_driver macro,
no functional changes.

Signed-off-by: default avatarVenkatraman S <svenkatr@ti.com>
Acked-by: default avatarBalaji T K <balajitk@ti.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent b6e0703b
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -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);