clk: ti: fix OF child-node lookup
authorJohan Hovold <johan@kernel.org>
Wed, 22 Aug 2018 09:03:19 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:13:01 +0000 (16:13 +0100)
commit459852bfd6ed77449cbf0a7e7b650bf61dd96162
treeba5fcdda53f0ef92b8b94a1c86ae58949a25d503
parent1e5ac60289f941a42cb6cedc381f1681320626c5
clk: ti: fix OF child-node lookup

[ Upstream commit 00a461cc32ec27fa7bd9c874a7b36b0c6c542c12 ]

Fix child-node lookup which by using the wrong OF helper was searching
the whole tree depth-first, something which could end up matching an
unrelated node.

Also fix the related node-reference leaks.

Fixes: 5b385a45e001 ("clk: ti: add support for clkctrl aliases")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/ti/clk.c