linux/drivers/pinctrl/mediatek
Julia Lawall 4fc8a4b2a4 pinctrl: mediatek: add missing of_node_put
for_each_child_of_node performs an of_node_get on each iteration, so a
return from 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>
@@
local idexpression n;
expression e,e1;
@@

 for_each_child_of_node(e1,n) {
   ...
(
   of_node_put(n);
|
   e = n
|
   return n;
|
+  of_node_put(n);
?  return ...;
)
   ...
 }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-12-22 13:49:05 +01:00
..
Kconfig pinctrl: mediatek: add OF dependency to MT6397 2015-05-20 09:11:23 +02:00
Makefile pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt8127 2015-05-19 11:17:45 +02:00
pinctrl-mt6397.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-mt8127.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-mt8135.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-mt8173.c pinctrl: mediatek: Implement wake handler and suspend resume 2015-08-26 14:39:43 +02:00
pinctrl-mtk-common.c pinctrl: mediatek: add missing of_node_put 2015-12-22 13:49:05 +01:00
pinctrl-mtk-common.h pinctrl: mediatek: Implement wake handler and suspend resume 2015-08-26 14:39:43 +02:00
pinctrl-mtk-mt6397.h pinctrl: mediatek: Add Pinctrl/GPIO driver for mt6397. 2015-05-19 11:16:17 +02:00
pinctrl-mtk-mt8127.h pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt8127 2015-05-19 11:17:45 +02:00
pinctrl-mtk-mt8135.h pinctrl: mediatek: Fix include directive 2015-03-18 10:58:21 +01:00
pinctrl-mtk-mt8173.h pinctrl: mediatek: mt8135/mt8173: Fix build error due to missing include file 2015-03-18 13:06:09 +01:00