]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerVinod Koul <vkoul@kernel.org>
Tue, 20 Sep 2022 06:26:38 +0000 (11:56 +0530)
commitc4c349be07aeec5f397a349046dc5fc0f2657691
tree324389e3eb00adffc1a5b848ae187274ec3e3aed
parent92086b884caf6ff02fda75084a331e70b0e26f81
phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent()

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>
drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c