[alsa-devel] [PATCH] sound/soc/mxs/mxs-saif.c: use devm_ functions

Dong Aisheng dongas86 at gmail.com
Fri Feb 10 20:20:36 CET 2012

On Fri, Feb 10, 2012 at 09:17:01AM +0100, Julia Lawall wrote:
> From: Julia Lawall <Julia.Lawall at lip6.fr>
> 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 at lip6.fr>
> ---
> patch against
> git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git from the
> branch for-3.4
It's ok now.
Acked-by: Dong Aisheng <dong.aisheng at linaro.org>

Dong Aisheng

More information about the Alsa-devel mailing list