Commit ca63b1cb authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Greg Kroah-Hartman
Browse files

mtd: rawnand: mtk: Use for_each_child_of_node_scoped()



[ Upstream commit 87959526 ]

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-8-ruanjinjie@huawei.com


Stable-dep-of: 2073ae37 ("mtd: rawnand: mtk: Fix init error path")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9b52ee18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment