1
0
Fork 0

remoteproc/omap: utilize module_platform_driver

Ditch some boilerplate code by employing the module_platform_driver
helper.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
hifive-unleashed-5.1
Ohad Ben-Cohen 2011-12-13 14:41:47 +02:00
parent 2fd51811b8
commit 63d667bf53
1 changed files with 1 additions and 12 deletions

View File

@ -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");