]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: rawnand: arasan: Use for_each_child_of_node_scoped()
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 26 Aug 2024 09:43:19 +0000 (17:43 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 6 Sep 2024 14:59:41 +0000 (16:59 +0200)
commit7021a797689d288a06cb48d0da44880d1dcaff8d
tree5663c582ed9a332cd89bd498832bd38961166d1f
parent3c0e167c21721901413e8bc2293642f4ee6f983f
mtd: rawnand: arasan: Use for_each_child_of_node_scoped()

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

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-2-ruanjinjie@huawei.com
drivers/mtd/nand/raw/arasan-nand-controller.c