OSDN Git Service

clk: ti: fix OF child-node lookup
authorJohan Hovold <johan@kernel.org>
Wed, 22 Aug 2018 09:03:19 +0000 (11:03 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 30 Aug 2018 21:44:01 +0000 (14:44 -0700)
commit00a461cc32ec27fa7bd9c874a7b36b0c6c542c12
treeda68bc11ceb10d9d634672a23ff54c30ca29dbdc
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
clk: ti: fix OF child-node lookup

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