OpenCloudOS-Kernel/drivers/power/reset
Julia Lawall c4c0edfbf8 power/reset: at91-reset: add missing of_node_put
for_each_matching_node performs an of_node_get on each iteration, so
a break out of the loop requires an of_node_put.

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

// <smpl>
@@
expression e,e1;
local idexpression np;
@@

 for_each_matching_node(np, e1) {
   ... when != of_node_put(np)
       when != e = np
(
   return np;
|
+  of_node_put(np);
?  return ...;
)
   ...
 }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2015-12-05 02:06:49 +01:00
..
Kconfig power/reset: at91-poweroff: allow compiling as a module 2015-09-22 15:18:53 +02:00
Makefile power/reset: zx: Register restart handler 2015-07-24 17:29:17 +02:00
arm-versatile-reboot.c power/reset: arm-versatile: Register with kernel restart handler 2015-01-25 22:12:45 +01:00
as3722-poweroff.c power: reset: drop owner assignment from platform_drivers 2014-10-20 16:21:28 +02:00
at91-poweroff.c power/reset: at91-poweroff: get and use slow clock 2015-09-22 15:18:53 +02:00
at91-reset.c power/reset: at91-reset: add missing of_node_put 2015-12-05 02:06:49 +01:00
axxia-reset.c power/reset: axxia: Register with kernel restart handler 2014-11-17 03:07:10 +01:00
brcmstb-reboot.c power/reset: brcmstb: Add support for old 65nm chips 2015-01-22 02:25:32 +01:00
gpio-poweroff.c power: reset: gpio-poweroff: let devm_gpiod_get set direction of gpio 2015-05-23 20:03:30 +02:00
gpio-restart.c power: reset: gpio-restart: increase priority slightly 2015-06-02 20:59:03 +02:00
hisi-reboot.c power: constify of_device_id array 2015-03-20 13:23:06 +01:00
imx-snvs-poweroff.c power: reset: imx-snvs-poweroff: add power off driver for i.mx6 2014-11-23 14:57:11 +08:00
keystone-reset.c power: constify of_device_id array 2015-03-20 13:23:06 +01:00
ltc2952-poweroff.c power supply and reset changes for the v4.2 series 2015-06-23 16:10:27 -07:00
msm-poweroff.c power: reset: use restart_notifier mechanism for msm-poweroff 2014-09-26 19:54:33 +02:00
qnap-poweroff.c power: reset: drop owner assignment from platform_drivers 2014-10-20 16:21:28 +02:00
restart-poweroff.c power/reset: restart-poweroff: Remove arm dependencies 2015-01-25 22:13:18 +01:00
rmobile-reset.c power: reset: Add reset driver for R-Mobile platforms 2015-01-21 16:32:05 +01:00
st-poweroff.c power: constify of_device_id array 2015-03-20 13:23:06 +01:00
syscon-poweroff.c power: reset: Add generic SYSCON register mapped poweroff. 2015-04-06 18:49:48 +02:00
syscon-reboot.c drivers/power: Convert non-modular syscon-reboot to use builtin_platform_driver 2015-06-16 14:12:38 -04:00
vexpress-poweroff.c power: constify of_device_id array 2015-03-20 13:23:06 +01:00
xgene-reboot.c power: constify of_device_id array 2015-03-20 13:23:06 +01:00
zx-reboot.c power/reset: zx: Remove unnecessary include file 2015-07-27 15:33:30 +02:00