]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: dwmac-sun8i: Use for_each_child_of_node_scoped()
authorJinjie Ruan <ruanjinjie@huawei.com>
Fri, 30 Aug 2024 03:13:18 +0000 (11:13 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Sep 2024 10:54:43 +0000 (12:54 +0200)
commit81b4eb62878a6b6722f28e64e6c7d62bba07292b
treeaaa639f80a3dd759e2bbf422d90daad863d08193
parentc55f34a7a1c347afc4c7adc5639c9f7b3749a922
net: stmmac: dwmac-sun8i: Use for_each_child_of_node_scoped()

Avoid need to manually handle of_node_put() by using
for_each_child_of_node_scoped(), which can simplfy code.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c