1
linux/arch/arm/mach-omap1
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
..
include/mach Fix common misspellings 2011-03-31 11:26:23 -03:00
ams-delta-fiq-handler.S Fix common misspellings 2011-03-31 11:26:23 -03:00
ams-delta-fiq.c
board-ams-delta.c
board-fsample.c
board-generic.c
board-h2-mmc.c
board-h2.c
board-h2.h
board-h3-mmc.c
board-h3.c
board-h3.h
board-htcherald.c
board-innovator.c
board-nokia770.c
board-osk.c arm: Cleanup the irq namespace 2011-03-29 14:47:57 +02:00
board-palmte.c
board-palmtt.c
board-palmz71.c arm: Cleanup the irq namespace 2011-03-29 14:47:57 +02:00
board-perseus2.c
board-sx1-mmc.c
board-sx1.c Fix common misspellings 2011-03-31 11:26:23 -03:00
board-voiceblue.c arm: Cleanup the irq namespace 2011-03-29 14:47:57 +02:00
clock_data.c
clock.c
clock.h
devices.c Fix common misspellings 2011-03-31 11:26:23 -03:00
dma.c arch/arm/mach-omap1/dma.c: Invert calls to platform_device_put and platform_device_del 2011-06-01 02:25:04 -07:00
flash.c ARM: 6910/1: MTD: physmap: let set_vpp() pass a platform_device instead of a map_info 2011-05-20 22:27:34 +01:00
fpga.c arm: Cleanup the irq namespace 2011-03-29 14:47:57 +02:00
gpio7xx.c
gpio15xx.c
gpio16xx.c
i2c.c
id.c
io.c
irq.c arm: Fold irq_set_chip/irq_set_handler 2011-03-29 14:47:58 +02:00
Kconfig
lcd_dma.c
leds-h2p2-debug.c
leds-innovator.c
leds-osk.c
leds.c
leds.h
mailbox.c
Makefile
Makefile.boot
mcbsp.c
mux.c
opp_data.c
opp.h
pm_bus.c OMAP1 / PM: Use generic clock manipulation routines for runtime PM 2011-05-16 20:15:36 +02:00
pm.c
pm.h
reset.c
serial.c
sleep.S
sram.S
time.c clocksource: convert OMAP1 to 32-bit down counting clocksource 2011-05-23 18:04:52 +01:00
timer32k.c
usb.c