[alsa-devel] [PATCH 1/15] sound/soc/mxs/mxs-saif.c: add missing iounmap
Wolfram Sang
w.sang at pengutronix.de
Sat Jan 28 09:29:39 CET 2012
On Sat, Jan 28, 2012 at 08:03:34AM +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.
>
> By removing the need for kfree and iounmap, this also eliminates missing
> resource-release problems.
>
> This also removes a now unneeded test on iores.
>
> Signed-off-by: Julia Lawall <Julia.Lawall at lip6.fr>
Looks good, will test it later today.
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120128/3142e4b3/attachment.sig
More information about the Alsa-devel
mailing list