ASoC: mxs-saif: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 10 Feb 2012 08:17:01 +0000 (09:17 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 10 Feb 2012 20:21:05 +0000 (20:21 +0000)
commit830eb8767d76b058118be74deac13e5f30b67892
treea4e5cd4d0d77e72a8754144ff013831d4238893e
parente2da26778c50761b16cc6e37828b37db8248f7ac
ASoC: mxs-saif: use devm_ functions

The various devm_ functions allocate memory that is released when a driver
detaches.  This patch uses these functions for data that is allocated in
the probe function of a platform device and is only freed in the remove
function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mxs/mxs-saif.c