Commit e941712c authored by Liang He's avatar Liang He Committed by Thierry Reding

soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse()

In this function, of_find_matching_node() will return a node pointer
with refcount incremented. We should use of_node_put() when the "np"
pointer is not used anymore.
Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 568035b0
......@@ -568,6 +568,7 @@ static int __init tegra_init_fuse(void)
np = of_find_matching_node(NULL, car_match);
if (np) {
void __iomem *base = of_iomap(np, 0);
of_node_put(np);
if (base) {
tegra_enable_fuse_clk(base);
iounmap(base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment