ASoC: adav80x: Use devm_kzalloc()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 17 Feb 2014 12:16:55 +0000 (13:16 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 18 Feb 2014 01:08:18 +0000 (10:08 +0900)
commitf96a5d3f1c09ce85ac1a90d733ca3585b9f2f70a
tree4675dffa6b16395d154e53c8a12ac003dd504d26
parent38dbfb59d1175ef458d006556061adeaa8751b72
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 <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/adav80x.c
This page took 0.025294 seconds and 5 git commands to generate.