soc: amlogic: meson-pwrc: Hold reference returned by of_get_parent()
authorLiang He <windhl@126.com>
Tue, 26 Jul 2022 07:38:41 +0000 (15:38 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 5 Sep 2022 07:23:54 +0000 (09:23 +0200)
commit9491cff16a4996aee578adf9f41acfb1bc483df9
tree6c5350eb29da42673d44464baffbce496b8286ec
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
soc: amlogic: meson-pwrc: Hold reference returned by of_get_parent()

We should hold the reference returned by of_get_parent() and use
it to call of_node_put() for refcount balance.

Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220726073841.1320509-1-windhl@126.com
drivers/soc/amlogic/meson-ee-pwrc.c
drivers/soc/amlogic/meson-gx-pwrc-vpu.c