diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2011-12-13 07:41:47 -0500 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2012-02-08 15:54:30 -0500 |
commit | 63d667bf53c444082b053d95ddc4d54f3dbe8f52 (patch) | |
tree | 61a0f4ca05b35e3298a7c3ddcdade9e84aa93a00 /drivers/remoteproc | |
parent | 2fd51811b8b87408fd680b442364e3474a1a0f21 (diff) |
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>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/omap_remoteproc.c | 13 |
1 files changed, 1 insertions, 12 deletions
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 = { | |||
232 | }, | 232 | }, |
233 | }; | 233 | }; |
234 | 234 | ||
235 | /* most of the below will go when module_platform_driver is merged */ | 235 | module_platform_driver(omap_rproc_driver); |
236 | static int __init omap_rproc_init(void) | ||
237 | { | ||
238 | return platform_driver_register(&omap_rproc_driver); | ||
239 | } | ||
240 | module_init(omap_rproc_init); | ||
241 | |||
242 | static void __exit omap_rproc_exit(void) | ||
243 | { | ||
244 | platform_driver_unregister(&omap_rproc_driver); | ||
245 | } | ||
246 | module_exit(omap_rproc_exit); | ||
247 | 236 | ||
248 | MODULE_LICENSE("GPL v2"); | 237 | MODULE_LICENSE("GPL v2"); |
249 | MODULE_DESCRIPTION("OMAP Remote Processor control driver"); | 238 | MODULE_DESCRIPTION("OMAP Remote Processor control driver"); |