From: Srinivas Kandagatla <[email protected]>
Running below Coccinelle lookup pattern like below on the
latest kernel showed about 52 hits. This patch series is a subset
of those 52 patches, so that it will be easy for maintainers to review.
Hopefully these patches will get rid of some code duplication in kernel.
@ @
- initfunc(void)
- { return platform_driver_register(&dr); }
...
- module_init(initfunc);
...
- exitfunc(void)
- { platform_driver_unregister(&dr); }
...
- module_exit(exitfunc);
+ module_platform_driver(dr);
Srinivas Kandagatla (5):
media/bfin: use module_platform_driver macro
media/m2m: use module_platform_driver macro
media/mx2_emmaprp: use module_platform_driver macro
media/soc_camera: use module_platform_driver macro
media/ir_rx51: use module_platform_driver macro
drivers/media/platform/blackfin/bfin_capture.c | 14 +-------------
drivers/media/platform/m2m-deinterlace.c | 14 +-------------
drivers/media/platform/mx2_emmaprp.c | 14 +-------------
drivers/media/platform/soc_camera/soc_camera.c | 14 +-------------
drivers/media/rc/ir-rx51.c | 13 +------------
5 files changed, 5 insertions(+), 64 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html