From: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx> 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 (7): usb/am35x: use module_platform_driver macro usb/blackfin: use module_platform_driver macro usb/da8xx: use module_platform_driver macro usb/davinci: use module_platform_driver macro usb/tusb6010: use module_platform_driver macro usb/ux500: use module_platform_driver macro usb/mv_otg: use module_platform_driver macro drivers/usb/musb/am35x.c | 13 +------------ drivers/usb/musb/blackfin.c | 13 +------------ drivers/usb/musb/da8xx.c | 13 +------------ drivers/usb/musb/davinci.c | 13 +------------ drivers/usb/musb/tusb6010.c | 13 +------------ drivers/usb/musb/ux500.c | 13 +------------ drivers/usb/otg/mv_otg.c | 14 +------------- 7 files changed, 7 insertions(+), 85 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html