]> www.infradead.org Git - users/willy/xarray.git/commit
mtd: rawnand: pl353: Use for_each_child_of_node_scoped()
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 26 Aug 2024 09:43:21 +0000 (17:43 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 6 Sep 2024 14:59:44 +0000 (16:59 +0200)
commite2e4eddf7b16a0cb431878e95e8bb80d893e4077
treebf9653844278ef4719da62c85182be22a9b0f2a7
parentfc214e50e292550dcd77e459e59a2a385bda4735
mtd: rawnand: pl353: Use for_each_child_of_node_scoped()

Avoids the need for manual cleanup of_node_put() in early exits
from the loop by using for_each_child_of_node_scoped().

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240826094328.2991664-4-ruanjinjie@huawei.com
drivers/mtd/nand/raw/pl35x-nand-controller.c