thermal/of: add missing of_node_put()
authorJulia Lawall <Julia.Lawall@inria.fr>
Thu, 7 Sep 2023 09:55:18 +0000 (11:55 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Sep 2023 15:16:36 +0000 (17:16 +0200)
commit8a81cf96f5510aaf9a65d103f7405079a7b0fcc5
tree935423778c6265aa58f0a6741a09dda91285d761
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
thermal/of: add missing of_node_put()

for_each_child_of_node performs an of_node_get on each
iteration, so a break out of the loop requires an
of_node_put.

This was done using the Coccinelle semantic patch
iterators/for_each_child.cocci

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_of.c