1
0
Fork 0
forked from mirror/openwrt

realtek: dsa: fix ports => ethernet-ports renaming

The "ports" node was renamed.  Update driver to match device-tree.

Cc: Markus Stockhausen <markus.stockhausen@gmx.de>
Fixes: 63729a8d6e ("realtek: dts: replace ports by ethernet-ports")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Link: https://github.com/openwrt/openwrt/pull/22242
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Bjørn Mork 2026-03-02 15:47:22 +01:00 committed by Robert Marko
parent b897db9c44
commit 3207627eab

View file

@ -1332,7 +1332,7 @@ static int rtldsa_ethernet_loaded(struct platform_device *pdev)
struct device_node *ports, *port;
int ret = -EPROBE_DEFER;
ports = of_get_child_by_name(dn, "ports");
ports = of_get_child_by_name(dn, "ethernet-ports");
if (!ports)
return -ENODEV;