net: sparx5/lan969x: populate netdev of_node

Populate of_node for the port netdevs, to make the individual ports
of_nodes available in sysfs.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Link: https://patch.msgid.link/20251110124342.199216-1-robert.marko@sartura.hr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Robert Marko
2025-11-10 13:42:53 +01:00
committed by Jakub Kicinski
parent 458ea87a6b
commit fc6aa0e470
@@ -395,6 +395,8 @@ static int sparx5_create_port(struct sparx5 *sparx5,
spx5_port->phylink = phylink;
spx5_port->ndev->dev.of_node = spx5_port->of_node;
return 0;
}