linux_old1/sound/soc/mxs
Julia Lawall 226d0f22d0 ASoC: keep pointer to resource so it can be freed
Add a new variable for storing resources accessed subsequent to the one
accessed using request_mem_region, so the one accessed using
request_mem_region can be released if needed.

The resource variable names are also changed to be more descriptive.

This code is also missing some calls to iounmap.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression E, E1;
identifier f;
statement S1,S2,S3;
@@

if (E == NULL)
{
  ... when != if (E == NULL || ...) S1 else S2
      when != E = E1
*E->f
  ... when any
  return ...;
}
else S3
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-10-22 10:46:35 +01:00
..
Kconfig ASoC: mxs: add asoc configuration files 2011-07-28 11:47:41 +01:00
Makefile ASoC: mxs: add asoc configuration files 2011-07-28 11:47:41 +01:00
mxs-pcm.c ASoC: mxs: add mxs-pcm driver 2011-07-28 11:47:22 +01:00
mxs-pcm.h ASoC: mxs: add mxs-pcm driver 2011-07-28 11:47:22 +01:00
mxs-saif.c ASoC: keep pointer to resource so it can be freed 2011-10-22 10:46:35 +01:00
mxs-saif.h ASoC: mxs-saif: add record function 2011-09-19 18:31:59 +01:00
mxs-sgtl5000.c ASoC: mxs-sgtl5000: add record function 2011-08-22 23:36:15 +01:00