Re: [PATCH] ARM: mact-pxa: Use module_platform_driver

2015-07-03 Thread Robert Jarzmik
Vaishali Thakkar writes: > Use module_platform_driver for drivers whose init and exit functions > only register and unregister, respectively. > > A simplified version of the Coccinelle semantic patch that performs > this transformation is as follows: Applied to pxa/for-next, thanks. For next tim

[PATCH] ARM: mact-pxa: Use module_platform_driver

2015-07-03 Thread Vaishali Thakkar
Use module_platform_driver for drivers whose init and exit functions only register and unregister, respectively. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: @a@ identifier f, x; @@ -static f(...) { return platform_driver_register(&x); }