]> git.ipfire.org Git - thirdparty/linux.git/commit
mtd: rawnand: marvell: drm/rockchip: Use for_each_child_of_node_scoped()
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 26 Aug 2024 09:43:22 +0000 (17:43 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 6 Sep 2024 14:59:46 +0000 (16:59 +0200)
commit707f2d0720ed6831d736cca084b62ba97eb7fa23
treeffa49fd412ff972e3ad56d872935e3f3aa307fc1
parente2e4eddf7b16a0cb431878e95e8bb80d893e4077
mtd: rawnand: marvell: drm/rockchip: 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-5-ruanjinjie@huawei.com
drivers/mtd/nand/raw/marvell_nand.c