2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/sound/soc/atmel
Amitoj Kaur Chawla fef5b2ba2d ASoC: atmel-pdmic: Simplify use of devm_ioremap_resource
Remove unneeded error handling on the result of a call to
platform_get_resource when the value is passed to
devm_ioremap_resource.

The Coccinelle semantic patch that makes this change is as follows:

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

- res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  ... when != res
- if (res == NULL) { ... \(goto l;\|return ret;\) }
  ... when != res
+ res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  e = devm_ioremap_resource(e1, res);
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-07-04 16:15:13 +02:00
..
atmel_ssc_dai.c ASoC: atmel_ssc_dai: read DSP mode A data on rising edges of bclk 2016-04-27 14:47:41 +01:00
atmel_ssc_dai.h ASoC: atmel_ssc_dai: Allow more rates 2015-02-10 15:12:41 +08:00
atmel_wm8904.c ASoC: atmel_wm8904: add snd_soc_pm_ops 2015-12-23 00:04:45 +00:00
atmel-classd.c ASoC: Atmel: ClassD: Simplify use of devm_ioremap_resource 2016-07-04 16:14:59 +02:00
atmel-classd.h ASoC: atmel-classd: add the Audio Class D Amplifier 2015-10-23 01:48:33 +09:00
atmel-pcm-dma.c ASoC: dmaengine_pcm: Make FLAG_NO_RESIDUE internal 2015-04-27 19:26:07 +01:00
atmel-pcm-pdc.c ASoC: atmel-pcm-pdc: merge atmel-pcm back in 2015-04-01 21:24:27 +01:00
atmel-pcm.h ASoC: atmel-pcm-pdc: merge atmel-pcm back in 2015-04-01 21:24:27 +01:00
atmel-pdmic.c ASoC: atmel-pdmic: Simplify use of devm_ioremap_resource 2016-07-04 16:15:13 +02:00
atmel-pdmic.h ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller 2015-12-18 07:02:37 +00:00
Kconfig ASoC: atmel: fix build failure 2016-06-06 17:00:47 +01:00
Makefile ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller 2015-12-18 07:02:37 +00:00
sam9g20_wm8731.c ASoC: at91sam9g20ek: Automatically disconnect non-connected pins 2015-04-27 15:39:23 +01:00
sam9x5_wm8731.c ASoC: atmel: drop owner assignment from platform_drivers 2014-10-20 16:22:03 +02:00