diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-08-27 17:04:50 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-27 22:59:40 -0700 |
commit | bd47497a0171b96264927e3377254db13b9fe3e3 (patch) | |
tree | 6fe8f9e9f9bcb592390b86af28a9fe01a5fafd78 /net/dsa/slave.c | |
parent | fa981d9af82e08f316ed25ed43078f995cc4be0a (diff) | |
download | linux-stable-bd47497a0171b96264927e3377254db13b9fe3e3.tar.gz linux-stable-bd47497a0171b96264927e3377254db13b9fe3e3.tar.bz2 linux-stable-bd47497a0171b96264927e3377254db13b9fe3e3.zip |
net: dsa: retain a per-port device_node pointer
We will later use the per-port device_node pointer to fetch a bunch of
port-specific properties.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, } SET_NETDEV_DEV(slave_dev, parent); + slave_dev->dev.of_node = ds->pd->port_dn[port]; slave_dev->vlan_features = master->vlan_features; p = netdev_priv(slave_dev); |