clk: tegra: Add missing of_node_put in clk-tegra30.c
Subsystems (3)
PATCH 1/1 clk: tegra: Add missing of_node_put in clk-tegra30.c
In tegra30_clock_init, of_find_matching_node() will return a node pointer with refcount incremented. We should use of_node_put() when the node pointer is not used anymore.
Signed-off-by heliang <[email protected]>
--- drivers/clk/tegra/clk-tegra30.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/tegra/clk-tegra30.c +1 -0
@@ -1320,6 +1320,7 @@ static void __init tegra30_clock_init(struct device_node *np) } pmc_base =of_iomap (node,0 ); +of_node_put (node);if (!pmc_base) {pr_err ("Can't map pmc registers\n" );BUG ();
Signature · 1 line
2.25.1