Re: [PATCH] coresight: replicator: Use module_platform_driver

2015-07-08 Thread Mathieu Poirier
On 6 July 2015 at 23:26, Vaishali Thakkar wrote: > 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,

[PATCH] coresight: replicator: Use module_platform_driver

2015-07-06 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); }