mmc: atmel-mci: add missing of_node_put
authorJulia Lawall <Julia.Lawall@inria.fr>
Thu, 7 Sep 2023 09:55:15 +0000 (11:55 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 26 Sep 2023 13:12:44 +0000 (15:12 +0200)
commit134d3cfbb8658eb9600a6db689d0b47d24d96fbe
tree5458dfdb1565eb64d6ba85ef147584bda0c34d74
parentbbe6dc429bf52b0062c2a9b39f850cfd317289a7
mmc: atmel-mci: 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>
Link: https://lore.kernel.org/r/20230907095521.14053-6-Julia.Lawall@inria.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c