]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerStephen Boyd <sboyd@kernel.org>
Fri, 19 Aug 2022 21:35:43 +0000 (14:35 -0700)
commit1d6aa08c54cd0e005210ab8e3b1e92ede70f8a4f
tree236dc4b811d41d6d9e763617ec7b7cd124515952
parent429973306f860470cbbb8402c8c53143b450faba
clk: oxnas: Hold reference returned by of_get_parent()

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>
drivers/clk/clk-oxnas.c