clk: oxnas: Hold reference returned by of_get_parent()
authorLiang He <windhl@126.com>
Tue, 28 Jun 2022 14:31:55 +0000 (22:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:35:03 +0000 (12:35 +0200)
commita8cbce0305b26dbe05ca3fa28b62428de6e680a7
treec60e4560727086c085ca7717687a3b577fdfbc93
parente0001a565c16a36ae60d8149192ffe22871aa89d
clk: oxnas: Hold reference returned by of_get_parent()

[ Upstream commit 1d6aa08c54cd0e005210ab8e3b1e92ede70f8a4f ]

In oxnas_stdclk_probe(), we need to hold the reference returned by
of_get_parent() and use it to call of_node_put() for refcount
balance.

Fixes: 0bbd72b4c64f ("clk: Add Oxford Semiconductor OXNAS Standard Clocks")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220628143155.170550-1-windhl@126.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-oxnas.c