linux-stable/drivers/remoteproc
Julia Lawall 0ddc5ec1c1 remoteproc/davinci: 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>
[simplify patch title]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
2014-02-24 11:10:24 +02:00
..
da8xx_remoteproc.c remoteproc/davinci: simplify use of devm_ioremap_resource 2014-02-24 11:10:24 +02:00
Kconfig mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
Makefile remoteproc/davinci: add a remoteproc driver for OMAP-L13x DSP 2013-04-15 09:23:40 +03:00
omap_remoteproc.c mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
omap_remoteproc.h remoteproc/omap: add a remoteproc driver for OMAP4 2012-02-08 22:53:47 +02:00
remoteproc_core.c remoteproc: Cocci spatch "memdup.spatch" 2013-07-01 17:23:58 +03:00
remoteproc_debugfs.c remoteproc: fix checkpatch errors in remoteproc code 2013-06-30 11:33:05 +03:00
remoteproc_elf_loader.c remoteproc: add find_loaded_rsc_table firmware ops 2013-04-05 08:49:52 +03:00
remoteproc_internal.h remoteproc: fix checkpatch errors in remoteproc code 2013-06-30 11:33:05 +03:00
remoteproc_virtio.c virtio_ring: change host notification API 2013-10-29 11:28:11 +10:30
ste_modem_rproc.c This pull request contains: 2013-05-07 14:04:56 -07:00