linux/drivers/clocksource
Julia Lawall 36f21f1ce4 clocksource: cyclone: Add missing iounmap
Add missing iounmap in error handling code, in a case where the function
already preforms iounmap on some other execution path.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e;
statement S,S1;
int ret;
@@
e = \(ioremap\|ioremap_nocache\)(...)
... when != iounmap(e)
if (<+...e...+>) S
... when any
    when != iounmap(e)
*if (...)
   { ... when != iounmap(e)
     return ...; }
... when any
iounmap(e);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
[fixed up subject -jstultz]
Signed-off-by: John Stultz <john.stultz@linaro.org>
2012-01-26 19:30:40 -08:00
..
acpi_pm.c time: x86: Remove CLOCK_TICK_RATE from acpi_pm clocksource driver 2011-11-21 19:00:58 -08:00
clksrc-dbx500-prcmu.c ARM: 7261/1: clocksource/ux500-prcmu: fix sched_clock breakage 2012-01-03 15:17:56 +00:00
cs5535-clockevt.c Andres has moved 2010-07-20 16:25:41 -07:00
cyclone.c clocksource: cyclone: Add missing iounmap 2012-01-26 19:30:40 -08:00
dw_apb_timer.c dw_apb_timer: constify clocksource name 2011-10-04 13:08:18 -07:00
i8253.c time: x86: Replace LATCH with PIT_LATCH in i8253 clocksource driver 2011-11-21 19:00:59 -08:00
Kconfig clocksource: add DBX500 PRCMU Timer support 2011-09-22 15:42:57 +02:00
Makefile clocksource: add DBX500 PRCMU Timer support 2011-09-22 15:42:57 +02:00
mmio.c clocksource: add common mmio clocksource 2011-05-23 18:04:51 +01:00
scx200_hrt.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
sh_cmt.c drivers/clocksource: Add module.h to those who were using it implicitly 2011-10-31 19:31:42 -04:00
sh_mtu2.c drivers/clocksource: Add module.h to those who were using it implicitly 2011-10-31 19:31:42 -04:00
sh_tmu.c drivers/clocksource: Add module.h to those who were using it implicitly 2011-10-31 19:31:42 -04:00
tcb_clksrc.c clocksource: Convert tcb_clksrc to use clocksource_register_hz/khz 2011-11-21 19:01:42 -08:00