From: Ohad Ben-Cohen Date: Tue, 13 Dec 2011 12:41:47 +0000 (+0200) Subject: remoteproc/omap: utilize module_platform_driver X-Git-Tag: v3.4-rc1~87^2~1^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=63d667bf53c444082b053d95ddc4d54f3dbe8f52;p=karo-tx-linux.git remoteproc/omap: utilize module_platform_driver Ditch some boilerplate code by employing the module_platform_driver helper. Signed-off-by: Ohad Ben-Cohen --- diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c index b49ecbb91ef3..aa3ce52dc65e 100644 --- a/drivers/remoteproc/omap_remoteproc.c +++ b/drivers/remoteproc/omap_remoteproc.c @@ -232,18 +232,7 @@ static struct platform_driver omap_rproc_driver = { }, }; -/* most of the below will go when module_platform_driver is merged */ -static int __init omap_rproc_init(void) -{ - return platform_driver_register(&omap_rproc_driver); -} -module_init(omap_rproc_init); - -static void __exit omap_rproc_exit(void) -{ - platform_driver_unregister(&omap_rproc_driver); -} -module_exit(omap_rproc_exit); +module_platform_driver(omap_rproc_driver); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("OMAP Remote Processor control driver");