[alsa-devel] [PATCH 3/4] ASoC: adav80x: Use devm_kzalloc()
Mark Brown
broonie at kernel.org
Tue Feb 18 02:08:33 CET 2014
On Mon, Feb 17, 2014 at 01:16:55PM +0100, Lars-Peter Clausen wrote:
> 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.
Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140218/bb6781e5/attachment.sig>
More information about the Alsa-devel
mailing list