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:
parent
b897db9c44
commit
3207627eab
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue