Commit 0d5c32b5 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Miquel Raynal
Browse files

mtd: rawnand: 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: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240826094328.2991664-6-ruanjinjie@huawei.com
parent 707f2d07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment