From: Lars-Peter Clausen Date: Mon, 17 Feb 2014 12:16:55 +0000 (+0100) Subject: ASoC: adav80x: Use devm_kzalloc() X-Git-Tag: v3.15-rc1~36^2~1^2~5^2~8^5~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f96a5d3f1c09ce85ac1a90d733ca3585b9f2f70a;p=pandora-kernel.git ASoC: adav80x: Use devm_kzalloc() Use devm_kzalloc() to allocate the device state struct. Saves use from having to free it manually on the error path and in the remove callback. Now that the adav80x_bus_probe() function is only a call to snd_soc_unregister_codec() also inline that. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed