linux-kernel-test/sound/soc
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
..
atmel ASoC: Remove redundant snd_soc_dapm_sync() calls from machine drivers 2011-10-08 14:10:54 +01:00
au1x ASoC: keep pointer to resource so it can be freed 2011-10-22 10:46:35 +01:00
blackfin ASoC: Staticise bf5xx_pcm_i2s_new() 2011-09-21 14:55:50 +01:00
codecs ASoC: sgtl5000: Fix wrong mask in some snd_soc_update_bits calls 2011-10-22 10:35:20 +01:00
davinci ASoC: Remove redundant snd_soc_dapm_sync() calls from machine drivers 2011-10-08 14:10:54 +01:00
ep93xx ASoC: Staticise ep93xx_ac97_dai 2011-10-03 14:15:32 +01:00
fsl ASoC: fsl: Fix error handling if platform_device_add fails 2011-09-20 12:58:59 +01:00
imx ASoC: Fix typo in Kconfig symbol for tlv320aic32x4 2011-10-11 14:32:22 +01:00
jz4740 ASoC: Staticise jz4740_pcm_new() 2011-09-21 14:55:50 +01:00
kirkwood ASoC: Remove redundant snd_soc_dapm_sync() calls from machine drivers 2011-10-08 14:10:54 +01:00
mid-x86 ASoC: Remove redundant snd_soc_dapm_sync() calls from machine drivers 2011-10-08 14:10:54 +01:00
mxs ASoC: keep pointer to resource so it can be freed 2011-10-22 10:46:35 +01:00
nuc900 ASoC: Staticise nuc900_dma_getposition() 2011-09-21 14:55:50 +01:00
omap ASoC: sdp3430: Let core to deal with the DAPM widgets 2011-10-10 16:18:12 +01:00
pxa ASoC: pxa: Remove redundant snd_soc_dapm_sync() calls from machine drivers 2011-10-13 11:50:04 +01:00
s6000 ASoC: s6000-pcm: remove unused variable 'dai' 2011-08-15 22:51:48 +09:00
samsung ASoC: Convert Goni to data based DAPM init 2011-10-11 14:30:19 +01:00
sh ASoC: Remove redundant snd_soc_dapm_sync() calls from machine drivers 2011-10-08 14:10:54 +01:00
tegra ASoC: Tegra: sparse cleanup 2011-10-17 22:43:16 +01:00
txx9 ASoC: txx9: Add __exit_p at necessary place 2011-10-03 14:15:40 +01:00
Kconfig Merge branch 'regmap-asoc' into for-3.2 2011-08-08 15:00:13 +09:00
Makefile ASoC: mxs: add asoc configuration files 2011-07-28 11:47:41 +01:00
soc-cache.c Merge branch 'for-3.1' into for-3.2 2011-08-31 09:46:42 +01:00
soc-core.c ASoC: Fix prefixing of DAPM controls 2011-10-18 11:16:31 +01:00
soc-dapm.c ASoC: Fix DAPM sync for TLV320AIC3x custom DAPM widget 2011-10-10 10:28:26 +01:00
soc-io.c ASoC: Squash error codes from regmap down to -1 on read 2011-10-09 14:35:59 +01:00
soc-jack.c ASoC: Ensure DAPM widgets are set up before we sync jacks 2011-10-06 16:18:39 +01:00
soc-pcm.c ASoC: core: Add flag to ignore pmdown_time at pcm_close 2011-10-14 20:42:21 +01:00
soc-utils.c ASoC: Work around allmodconfig failure 2011-04-28 12:09:06 +01:00