From: Venkatraman S Date: Tue, 8 May 2012 11:35:35 +0000 (+0530) Subject: mmc: omap: convert to module_platform_driver X-Git-Tag: v3.5-rc1~85^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=680f1b5b216af1ae051bdf237e3ea47ba9124876;p=karo-tx-linux.git mmc: omap: convert to module_platform_driver Get rid of boilerplate code by using module_platform_driver macro, no functional changes. Signed-off-by: Venkatraman S Acked-by: Balaji T K Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 0056bd8acc83..552196c764d4 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c @@ -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);