linux/arch/arm/mach-rockchip
Wen Yang fbd7af0415 ARM: rockchip: add missing of_node_put in rockchip_smp_prepare_pmu
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-rockchip/platsmp.c:250:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function.
./arch/arm/mach-rockchip/platsmp.c:260:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function.
./arch/arm/mach-rockchip/platsmp.c:263:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-rockchip@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2019-04-23 19:52:37 +02:00
..
core.h ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00
headsmp.S ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00
Kconfig ARM: rockchip: Force CONFIG_PM on Rockchip systems 2018-08-24 08:50:23 -07:00
Makefile ARM: rockchip: add suspend and resume for RK3288 2014-12-31 16:16:50 +01:00
platsmp.c ARM: rockchip: add missing of_node_put in rockchip_smp_prepare_pmu 2019-04-23 19:52:37 +02:00
pm.c ARM: rockchip: Mark pm-init functions __init 2019-04-12 13:12:54 +02:00
pm.h ARM: rockchip: enable PMU_GPIOINT_WAKEUP_EN when entering shallow suspend 2015-08-06 13:05:14 +02:00
rockchip.c ARM: SoC platform updates 2017-07-04 14:34:51 -07:00
sleep.S ARM: align .data section 2017-08-14 16:22:55 +01:00