Commit 63d667bf authored by Ohad Ben-Cohen's avatar Ohad Ben-Cohen

remoteproc/omap: utilize module_platform_driver

Ditch some boilerplate code by employing the module_platform_driver
helper.
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent 2fd51811
...@@ -232,18 +232,7 @@ static struct platform_driver omap_rproc_driver = { ...@@ -232,18 +232,7 @@ static struct platform_driver omap_rproc_driver = {
}, },
}; };
/* most of the below will go when module_platform_driver is merged */ module_platform_driver(omap_rproc_driver);
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_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("OMAP Remote Processor control driver"); MODULE_DESCRIPTION("OMAP Remote Processor control driver");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment