acrn-kernel/arch/arm/mach-shmobile
Wen Yang 115bbc30c6 ARM: shmobile: fix a leaked reference by adding missing of_node_put
The call to of_get_next_child returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./arch/arm/mach-shmobile/pm-rcar-gen2.c:77:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function.
./arch/arm/mach-shmobile/pm-rcar-gen2.c:85:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function.
./arch/arm/mach-shmobile/pm-rcar-gen2.c:90:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2019-03-18 10:32:36 +01:00
..
Kconfig ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
Makefile ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
common.h ARM: shmobile: Remove unused shmobile_smp_init_fallback_ops() 2018-06-18 12:00:22 +02:00
emev2.h
headsmp-apmu.S ARM: shmobile: rcar-gen2: Stop compiling headsmp-apmu on !SMP 2018-06-27 17:08:52 +02:00
headsmp-scu.S ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
headsmp.S ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
platsmp-apmu.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
platsmp-scu.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
platsmp.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
pm-rcar-gen2.c ARM: shmobile: fix a leaked reference by adding missing of_node_put 2019-03-18 10:32:36 +01:00
r8a7779.h ARM: shmobile: r8a7779: Remove explicit SYSC config and init 2018-06-18 12:00:28 +02:00
rcar-gen2.h
regulator-quirk-rcar-gen2.c ARM: shmobile: porter: enable R-Car Gen2 regulator quirk 2019-03-18 10:32:36 +01:00
setup-emev2.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r7s9210.c ARM: shmobile: Add basic RZ/A2 SoC support 2018-08-27 15:06:42 +02:00
setup-r7s72100.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a73a4.c ARM: shmobile: Always enable ARCH_TIMER on SoCs with A7 and/or A15 2018-07-20 13:44:10 +02:00
setup-r8a7740.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a7778.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a7779.c ARM: shmobile: r8a7779: Remove unused includes 2018-08-27 15:02:54 +02:00
setup-rcar-gen2.c ARM: shmobile: r8a7744: Basic SoC support 2018-09-17 10:47:46 +02:00
setup-sh73a0.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
sh73a0.h
smp-emev2.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
smp-r8a7779.c ARM: shmobile: r8a7779: hide unused r8a7779_platform_cpu_kill 2018-07-20 13:44:09 +02:00
smp-sh73a0.c ARM: shmobile: sh73a0: Remove obsolete inclusion of <asm/smp_twd.h> 2018-11-16 07:27:19 -08:00
suspend.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
timer.c ARM: SoC platform updates for 4.20 2018-10-29 15:37:33 -07:00