linux-stable/arch/arm/mach-shmobile
Liang He c2e53a1b07 ARM: shmobile: rcar-gen2: Increase refcount for new reference
[ Upstream commit 75a185fb92 ]

In rcar_gen2_regulator_quirk(), for_each_matching_node_and_match() will
automatically increase and decrease the refcount.  However, we should
call of_node_get() for the new reference created in 'quirk->np'.
Besides, we also should call of_node_put() before the 'quirk' being
freed.

Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220701121804.234223-1-windhl@126.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-21 15:15:31 +02:00
..
common.h
emev2.h
headsmp-apmu.S
headsmp-scu.S
headsmp.S
Kconfig
Makefile
platsmp-apmu.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
platsmp-scu.c
platsmp.c
pm-rcar-gen2.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
r8a7779.h
rcar-gen2.h ARM: shmobile: rcar-gen2: Make rcar_gen2_{timer_init, reserve}() static 2020-09-10 19:01:26 +02:00
regulator-quirk-rcar-gen2.c ARM: shmobile: rcar-gen2: Increase refcount for new reference 2022-08-21 15:15:31 +02:00
setup-emev2.c
setup-r7s9210.c
setup-r7s72100.c
setup-r8a73a4.c
setup-r8a7740.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
setup-r8a7778.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
setup-r8a7779.c ARM: shmobile: Enable ARM_GLOBAL_TIMER on Cortex-A9 MPCore SoCs 2020-02-10 13:44:29 +01:00
setup-rcar-gen2.c ARM: SoC platform updates 2020-10-24 10:33:08 -07:00
setup-sh73a0.c ARM: shmobile: Enable ARM_GLOBAL_TIMER on Cortex-A9 MPCore SoCs 2020-02-10 13:44:29 +01:00
sh73a0.h
smp-emev2.c
smp-r8a7779.c
smp-sh73a0.c
suspend.c
timer.c