Re: [PATCH] Input: misc : Introduce the use of the managed version of kzalloc

2014-05-20 Thread Dmitry Torokhov
Hi Himangi, On Tue, May 20, 2014 at 08:39:18PM +0530, Himangi Saraogi wrote: > Would be better to add the definition of a > devm_input_allocate_polled_device, like there is a > devm_input_allocate_device defined? There is one, queued for 3.16. You should see it in linux-next. Thanks. -- Dmitry

[PATCH] Input: misc : Introduce the use of the managed version of kzalloc

2014-05-20 Thread Himangi Saraogi
This patch moves data allocated using kzalloc to managed data allocated using devm_kzalloc and cleans now unnecessary kfrees in probe and remove functions. The following Coccinelle semantic patch was used for making the change: @platform@ identifier p, probefn, removefn; @@ struct platform_driver