Re: [PATCH] ACPI / AC: Introduce the use of the managed version of kzalloc

2014-05-04 Thread Lan Tianyu
2014-05-04 20:35 GMT+08:00 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. Acked-by: Lan Tianyu > > The following Coccinelle semantic patch was used for making the

[PATCH] ACPI / AC: Introduce the use of the managed version of kzalloc

2014-05-04 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