linux/sound/soc/au1x
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
..
ac97c.c ASoC: keep pointer to resource so it can be freed 2011-10-22 10:46:35 +01:00
db1000.c ASoC: Add a DB1x00 AC97 machine driver 2011-07-27 19:10:48 +01:00
db1200.c ASoC: au1x: update db1200 machine to the new way of things 2011-07-27 19:16:47 +01:00
dbdma2.c ASoC: au1x: use substream stream info directly 2011-07-27 19:16:51 +01:00
dma.c ASoC: Alchemy AC97C/I2SC audio support 2011-07-26 15:40:51 +01:00
i2sc.c ASoC: keep pointer to resource so it can be freed 2011-10-22 10:46:35 +01:00
Kconfig ASoC: Add a DB1x00 AC97 machine driver 2011-07-27 19:10:48 +01:00
Makefile ASoC: Add a DB1x00 AC97 machine driver 2011-07-27 19:10:48 +01:00
psc-ac97.c ASoC: keep pointer to resource so it can be freed 2011-10-22 10:46:35 +01:00
psc-i2s.c ASoC: keep pointer to resource so it can be freed 2011-10-22 10:46:35 +01:00
psc.h ASoC: au1x: use substream stream info directly 2011-07-27 19:16:51 +01:00