[PATCH 3.6.0- 0/6] ARM: use module_platform_driver macro
Srinivas KANDAGATLA
srinivas.kandagatla at st.com
Wed Oct 10 14:29:56 EDT 2012
From: Srinivas Kandagatla <srinivas.kandagatla at st.com>
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 (6):
ARM/omap1: use module_platform_driver macro
ARM/omap2: use module_platform_driver macro
ARM/pxa: use module_platform_driver macro
ARM/pxa: use module_platform_driver macro
ARM/omap: use module_platform_driver macro
omap_rng: use module_platform_driver macro
arch/arm/mach-omap1/mailbox.c | 14 +-------------
arch/arm/mach-omap2/mailbox.c | 14 +-------------
arch/arm/mach-pxa/pxa3xx-ulpi.c | 13 +------------
arch/arm/mach-pxa/tosa-bt.c | 15 +--------------
arch/arm/plat-omap/dmtimer.c | 13 +------------
drivers/char/hw_random/omap-rng.c | 14 +-------------
6 files changed, 6 insertions(+), 77 deletions(-)
More information about the linux-arm-kernel
mailing list