diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-11-15 09:34:23 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-11-17 15:01:37 +0100 |
commit | 0563df2ce72b5d21217223e73f56ecfcacffb639 (patch) | |
tree | e24f5ab033e2772599f206f48fa6a2126535d90c /drivers/pinctrl/qcom | |
parent | 932cb839628e9b4660672e93280a41da044601e1 (diff) |
pinctrl: imx1-core: add missing of_node_put
for_each_child_of_node performs an of_node_get on each iteration,
so of_node_put is required on break out of the loop.
This is done using Coccinelle. And semantic patch used for this is
as follows:
@@
expression root,e;
local idexpression child;
@@
for_each_child_of_node(root, child) {
... when != of_node_put(child)
when != e = child
(
return child;
|
+ of_node_put(child);
? return ...;
)
...
}
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom')
0 files changed, 0 insertions, 0 deletions