Skip to content

Commit

Permalink
remoteproc/omap: utilize module_platform_driver
Browse files Browse the repository at this point in the history
Ditch some boilerplate code by employing the module_platform_driver
helper.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
  • Loading branch information
Ohad Ben-Cohen committed Feb 8, 2012
1 parent 2fd5181 commit 63d667b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/remoteproc/omap_remoteproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit 63d667b

Please sign in to comment.