diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/dsa/dsa.c | 2 | ||||
-rw-r--r-- | net/dsa/slave.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index a28ef432d016..6a5bae673037 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
@@ -432,6 +432,8 @@ static int dsa_of_probe(struct platform_device *pdev) | |||
432 | if (!port_name) | 432 | if (!port_name) |
433 | continue; | 433 | continue; |
434 | 434 | ||
435 | cd->port_dn[port_index] = port; | ||
436 | |||
435 | cd->port_names[port_index] = kstrdup(port_name, | 437 | cd->port_names[port_index] = kstrdup(port_name, |
436 | GFP_KERNEL); | 438 | GFP_KERNEL); |
437 | if (!cd->port_names[port_index]) { | 439 | if (!cd->port_names[port_index]) { |
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index ad1a913533aa..5688c34253e5 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -354,6 +354,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent, | |||
354 | } | 354 | } |
355 | 355 | ||
356 | SET_NETDEV_DEV(slave_dev, parent); | 356 | SET_NETDEV_DEV(slave_dev, parent); |
357 | slave_dev->dev.of_node = ds->pd->port_dn[port]; | ||
357 | slave_dev->vlan_features = master->vlan_features; | 358 | slave_dev->vlan_features = master->vlan_features; |
358 | 359 | ||
359 | p = netdev_priv(slave_dev); | 360 | p = netdev_priv(slave_dev); |