tmp_suning_uos_patched/arch/powerpc/platforms/83xx
Julia Lawall fa9fc821f8 arch/powerpc/platforms/83xx/mpc837x_mds.c: Add missing iounmap
The function of_iomap returns the result of calling ioremap, so iounmap
should be called on the result in the error handling code, as done in the
normal exit of the function.

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

// <smpl>
@r exists@
local idexpression x;
expression E,E1;
identifier l;
statement S;
@@

*x = of_iomap(...);
...  when != iounmap(x)
     when != if (...) { ... iounmap(x); ... }
     when != E = x
     when any
(
if (x == NULL) S
|
if (...) {
  ... when != iounmap(x)
      when != if (...) { ... iounmap(x); ... }
(
  return <+...x...+>;
|
*  return ...;
)
}
)
... when != x = E1
    when any
iounmap(x);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2010-08-31 16:38:47 -05:00
..
asp834x.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
Kconfig powerpc/mpc8308rdb: support for MPC8308RDB board from Freescale 2010-08-04 14:18:50 -05:00
kmeter1.c 83xx: add support for the kmeter1 board. 2009-06-15 22:15:09 -05:00
Makefile powerpc/mpc8308rdb: support for MPC8308RDB board from Freescale 2010-08-04 14:18:50 -05:00
mcu_mpc8349emitx.c of: refactor of_modalias_node() and remove explicit match table. 2010-07-05 16:14:52 -06:00
misc.c [POWERPC] 83xx: Don't call ioremap in the reset function 2007-01-26 00:37:11 -06:00
mpc83xx.h powerpc/83xx: Add eSDHC support for MPC837xE-RDB/WLAN boards 2009-08-20 10:27:51 +10:00
mpc830x_rdb.c powerpc/mpc8308rdb: support for MPC8308RDB board from Freescale 2010-08-04 14:18:50 -05:00
mpc831x_rdb.c powerpc/83xx: Add MCU LEDs support for MPC837xRDB and MPC8315RDB boards 2010-05-17 10:55:32 -05:00
mpc832x_mds.c powerpc/83xx: Fix sparse warnings in board files 2008-12-30 11:13:41 -06:00
mpc832x_rdb.c powerpc: Fix build of some FSL platforms 2009-11-24 17:00:27 +11:00
mpc834x_itx.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
mpc834x_mds.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
mpc836x_mds.c powerpc/83xx: Add USB Host/Gadget support for MPC8360E-MDS boards 2008-12-30 11:13:46 -06:00
mpc836x_rdk.c powerpc/83xx: Fix few build errors with CONFIG_QUICC_ENGINE=n 2008-12-30 11:14:05 -06:00
mpc837x_mds.c arch/powerpc/platforms/83xx/mpc837x_mds.c: Add missing iounmap 2010-08-31 16:38:47 -05:00
mpc837x_rdb.c of/device: Replace struct of_device with struct platform_device 2010-08-06 09:25:50 -06:00
sbc834x.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
suspend-asm.S powerpc/mpc83xx: Power Management support 2008-07-16 17:57:30 -05:00
suspend.c powerpc: remove references to of_device and to_of_device 2010-07-24 09:58:21 -06:00
usb.c powerpc/mpc83xx: Fix usb mux setup for mpc834x 2009-06-15 21:45:31 -05:00