kernel-hacking-2024-linux-s.../sound
Julia Lawall 64efc5a0f2 ASoC: samsung-ac97: 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.

Move the call to platform_get_resource adjacent to the call to
devm_ioremap_resource to make the connection between them more clear.

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

// <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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-14 19:14:36 +01:00
..
aoa
arm ALSA: Remove the rest of *_set_drvdata(NULL) calls 2013-05-29 12:50:59 +02:00
atmel
core sound updates for 3.11 2013-07-03 19:52:22 -07:00
drivers ALSA: vx_core: off by one in vx_read_status() 2013-06-21 14:32:06 +02:00
firewire IEEE 1394 (FireWire) subsystem changes post v3.10: 2013-07-10 11:02:58 -07:00
i2c ALSA: ak4xx-adda: info leak in ak4xxx_capture_source_info() 2013-06-26 10:35:55 +02:00
isa ALSA: ISA: Remove superfluous *_set_drvdata(NULL) calls 2013-05-29 12:50:28 +02:00
mips
oss sound: OSS: Remove superfluous pci_set_dvdata(pci, NULL) 2013-05-29 12:40:04 +02:00
parisc ALSA: Remove the rest of *_set_drvdata(NULL) calls 2013-05-29 12:50:59 +02:00
pci sound fixes for 3.11 2013-07-11 12:45:59 -07:00
pcmcia
ppc
sh
soc ASoC: samsung-ac97: simplify use of devm_ioremap_resource 2013-08-14 19:14:36 +01:00
sparc ALSA: Remove the rest of *_set_drvdata(NULL) calls 2013-05-29 12:50:59 +02:00
spi ALSA: Remove the rest of *_set_drvdata(NULL) calls 2013-05-29 12:50:59 +02:00
synth
usb ALSA: usb-audio: fix regression for fixed stream quirk 2013-07-10 17:52:14 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c drivers: avoid format string in dev_set_name 2013-07-03 16:07:41 -07:00
sound_firmware.c