]> git.hungrycats.org Git - linux/commit
clk: ti: dra7-atl-clock: Fix of_node reference counting
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 11 Mar 2016 14:13:32 +0000 (16:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:35:52 +0000 (08:35 +0000)
commit26b3a4046639b949979fa071c761ef139f48c33d
treede099456535ed6681e568dfef373a273a47e1909
parent5f8a3df04772b367a1b18c943b7e1671ad9fd9e9
clk: ti: dra7-atl-clock: Fix of_node reference counting

commit 660e1551939931657808d47838a3f443c0e83fd0 upstream.

of_find_node_by_name() will call of_node_put() on the node so we need to
get it first to avoid warnings.
The cfg_node needs to be put after we have finished processing the
properties.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/ti/clk-dra7-atl.c