soc: dove: add missing of_node_put
authorJulia Lawall <Julia.Lawall@inria.fr>
Thu, 7 Sep 2023 09:55:17 +0000 (11:55 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 20 Sep 2023 09:28:02 +0000 (11:28 +0200)
commitcc3b17cabe9fd2881eace5b7b1581914569d62e9
tree3f6c557a96657cfbee417064d732a83effd1a0e9
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
soc: dove: add missing of_node_put

for_each_available_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: Gregory CLEMENT <gregory.clement@bootlin.com>
drivers/soc/dove/pmu.c