Julia Lawall 77f7059a32 arch/arm/mach-omap1/dma.c: Invert calls to platform_device_put and platform_device_del
Platform_device_del should be called before platform_device_put, as
platform_device_put can delete the structure.

Additionally, improve the error handling code for the call to ioremap, so
that it calls platform_device_put.

The semantic match that finds this problem is:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e1,e2;
@@

*platform_device_put(e1);
... when != e1 = e2
*platform_device_del(e1);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2011-06-01 02:25:04 -07:00
..
2011-03-31 11:26:23 -03:00
2010-10-12 16:07:51 -07:00
2010-10-12 16:07:51 -07:00
2011-03-29 14:47:57 +02:00
2011-01-27 16:39:41 -08:00
2011-03-29 14:47:57 +02:00
2010-10-12 16:07:51 -07:00
2011-03-31 11:26:23 -03:00
2010-07-26 16:34:28 -06:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:57 +02:00
2011-03-29 14:47:58 +02:00
2010-11-24 16:48:25 -08:00