phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent()
authorLiang He <windhl@126.com>
Thu, 15 Sep 2022 09:35:06 +0000 (17:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:35:09 +0000 (12:35 +0200)
commite4be7c9495c812141be42fd5f7757246feb59435
treeb17d60dafe4d8db6d7b1f4f542a0ab84aff5576c
parent88263152ff5673d044960d7419f43d8a9f29c84b
phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent()

[ Upstream commit c4c349be07aeec5f397a349046dc5fc0f2657691 ]

As the of_get_parent() will increase the refcount of the node->parent
and the reference will be discarded, so we should hold the reference
with which we can decrease the refcount when done.

Fixes: 8eff8b4e22d9 ("phy: amlogic: phy-meson-axg-mipi-pcie-analog: add support for MIPI DSI analog")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220915093506.4009456-1-windhl@126.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c