Re: [PATCH] remove explicit devm_kfree

2014-08-15 Thread Dmitry Torokhov
On Fri, Aug 15, 2014 at 08:56:05PM +0530, Arjun Sreedharan wrote: > Memory allocated with devm_kzalloc() is freed automatically when device > out of scope. But in this case the device does not necessarily goes "out of scope" and we still want to release memory. Thanks. > > Signed-off-by: Arjun

[PATCH] remove explicit devm_kfree

2014-08-15 Thread Arjun Sreedharan
Memory allocated with devm_kzalloc() is freed automatically when device out of scope. Signed-off-by: Arjun Sreedharan --- drivers/input/misc/soc_button_array.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/soc_button_array.c b/drivers/input/misc/soc_button_array.c index