linux/drivers/memory
Julia Lawall 946a88df76 tegra: 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.

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: Stephen Warren <swarren@nvidia.com>
2013-08-15 16:04:42 -06:00
..
emif.c drivers/memory: don't check resource with devm_ioremap_resource 2013-05-18 11:55:52 +02:00
emif.h memory: emif: handle frequency and voltage change events 2012-05-02 10:52:09 -07:00
Kconfig drivers: memory: Introduce Marvell EBU Device Bus driver 2013-05-21 10:11:56 -07:00
Makefile drivers: memory: Introduce Marvell EBU Device Bus driver 2013-05-21 10:11:56 -07:00
mvebu-devbus.c drivers: memory: Introduce Marvell EBU Device Bus driver 2013-05-21 10:11:56 -07:00
of_memory.c memory: emif: add device tree support to emif driver 2012-09-04 16:14:31 -07:00
of_memory.h memory: fix build when CONFIG_OF && !CONFIG_DDR 2012-09-05 11:57:19 -07:00
tegra20-mc.c tegra: simplify use of devm_ioremap_resource 2013-08-15 16:04:42 -06:00
tegra30-mc.c tegra: simplify use of devm_ioremap_resource 2013-08-15 16:04:42 -06:00