LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3.6.0- 0/2] POWERPC: use module_platform_driver macro
@ 2012-10-10 18:32 Srinivas KANDAGATLA
  0 siblings, 0 replies; only message in thread
From: Srinivas KANDAGATLA @ 2012-10-10 18:32 UTC (permalink / raw)
  To: grant.likely; +Cc: krafft, agust, linuxppc-dev, srinivas.kandagatla

From: Srinivas Kandagatla <srinivas.kandagatla@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 (2):
  powerpc/mpc52xx: use module_platform_driver macro
  powerpc/sysdev: use module_platform_driver macro

 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c |   16 +---------------
 arch/powerpc/sysdev/pmi.c                     |   13 +------------
 2 files changed, 2 insertions(+), 27 deletions(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-10 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-10 18:32 [PATCH 3.6.0- 0/2] POWERPC: use module_platform_driver macro Srinivas KANDAGATLA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox