kernel_optimize_test/drivers/pinctrl/sh-pfc
Julia Lawall d0b3ed4160 pinctrl: sh-pfc: add missing of_node_put
for_each_child_of_node performs an of_node_get on each iteration, so a
goto 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>
@@
local idexpression n;
expression e,e1;
identifier l;
@@

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

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-12-22 13:45:53 +01:00
..
core.c pinctrl: sh-pfc: Remove obsolete r8a7778 platform_device_id entry 2015-10-20 16:11:27 +02:00
core.h pinctrl: sh-pfc: Initial R8A7795 PFC support 2015-10-02 09:54:39 +02:00
gpio.c pinctrl: sh-pfc: Remove hardcoded IRQ numbers 2015-10-02 09:54:35 +02:00
Kconfig pinctrl: sh-pfc: Initial R8A7795 PFC support 2015-10-02 09:54:39 +02:00
Makefile pinctrl: sh-pfc: Initial R8A7795 PFC support 2015-10-02 09:54:39 +02:00
pfc-emev2.c pinctrl: sh-pfc: emev2: Correct comment for CFI data pins 2015-12-08 14:18:39 +01:00
pfc-r8a73a4.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-r8a7740.c pinctrl: sh-pfc: r8a7740: Correct comment for LCD1 data pins 2015-12-08 14:18:40 +01:00
pfc-r8a7778.c pinctrl: sh-pfc: r8a7778: Use PINMUX_SINGLE() instead of raw PINMUX_DATA() 2015-12-08 14:10:50 +01:00
pfc-r8a7779.c pinctrl: sh-pfc: r8a7779: Add SCIF_CLK support 2015-12-16 11:18:07 +01:00
pfc-r8a7790.c pinctrl: sh-pfc: r8a7790: Add SCIF_CLK support 2015-12-16 11:18:12 +01:00
pfc-r8a7791.c pinctrl: sh-pfc: r8a7791: add EtherAVB pin groups 2015-12-16 11:23:38 +01:00
pfc-r8a7794.c pinctrl: sh-pfc: r8a7794: Add SCIF_CLK support 2015-12-16 11:18:16 +01:00
pfc-r8a7795.c pinctrl: sh-pfc: r8a7795: Add SATA support 2015-12-16 11:23:37 +01:00
pfc-sh73a0.c pinctrl: sh-pfc: sh73a0: Add MSIOF support 2015-12-08 14:18:41 +01:00
pfc-sh7203.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7264.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7269.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7720.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7722.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7723.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7724.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7734.c Linux 4.4-rc5 2015-12-17 14:57:46 +01:00
pfc-sh7757.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7785.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7786.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-shx3.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pinctrl.c pinctrl: sh-pfc: add missing of_node_put 2015-12-22 13:45:53 +01:00
sh_pfc.h pinctrl: sh-pfc: Share/reuse same PORT_GP_x() macros 2015-11-30 13:41:35 +01:00