linux/sound/soc/omap
Julia Lawall 673c24e957 ASoC: omap: simplify platform_get_resource_byname/devm_ioremap_resource
Remove unneeded error handling on the result of a call to
platform_get_resource_byname when the value is passed to devm_ioremap_resource.

In the case of omap-dmic.c, the error-handling code of
devm_ioremap_resource is also corrected to include releasing the clock.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression pdev,res,e,e1;
expression ret != 0;
identifier l;
@@

  res = platform_get_resource_byname(...);
- if (res == NULL) { ... \(goto l;\|return ret;\) }
  e = devm_ioremap_resource(e1, res);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-20 11:50:58 +01:00
..
am3517evm.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
ams-delta.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
Kconfig Merge branch 'topic/dma' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-omap 2013-08-15 11:37:38 +01:00
Makefile ASoC: OMAP: Remove obsolete Makefile line 2013-05-30 11:49:24 +01:00
mcbsp.c ASoC: omap-mcbsp: Use different method for DMA request when booted with DT 2013-07-11 17:38:03 +01:00
mcbsp.h ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
n810.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
omap3pandora.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
omap-abe-twl6040.c ASoC: omap-abe-twl6040: Remove support for pdata (legacy boot) 2013-07-31 20:03:00 +01:00
omap-dmic.c ASoC: omap: simplify platform_get_resource_byname/devm_ioremap_resource 2013-08-20 11:50:58 +01:00
omap-dmic.h ASoC: OMAP4: omap-dmic: Initial support for OMAP DMIC 2011-11-28 17:21:44 +00:00
omap-hdmi-card.c ASoC: omap-hdmi-codec: make the driver common for other SoCs 2013-06-05 16:54:55 +01:00
omap-hdmi.c Merge remote-tracking branch 'asoc/topic/dma' into asoc-next 2013-04-12 13:57:04 +01:00
omap-hdmi.h ASoC: OMAP: HDMI: Expand capabilities of the HDMI DAI 2012-05-22 17:33:23 +01:00
omap-mcbsp.c ASoC: omap-mcbsp: Support SND_SOC_DAIFMT_CBM_CFS for omap3/4 2013-07-22 00:57:36 +01:00
omap-mcbsp.h ASoC: omap-mcbsp: Remove unused defines 2012-08-22 20:17:11 +01:00
omap-mcpdm.c ASoC: omap: simplify platform_get_resource_byname/devm_ioremap_resource 2013-08-20 11:50:58 +01:00
omap-mcpdm.h ASoC: omap-mcpdm: API to configure offset cancellation 2011-09-26 22:23:32 +01:00
omap-pcm.c ASoC: omap-pcm: Request the DMA channel differently when DT is involved 2013-07-11 17:37:44 +01:00
omap-twl4030.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
osk5912.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
rx51.c ARM: OMAP2+: N900: enable N900-specific drivers even if device tree is enabled 2013-07-04 05:11:16 -07:00