mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
mtd: rawnand: mtk: Use for_each_child_of_node_scoped()
[ Upstream commit8795952679] 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-8-ruanjinjie@huawei.com Stable-dep-of:2073ae37d5("mtd: rawnand: mtk: Fix init error path") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9b52ee18f6
commit
ca63b1cbcd
1 changed files with 2 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue