diff options
| author | Florian Fainelli <[email protected]> | 2014-08-28 00:04:50 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-08-28 05:59:40 +0000 |
| commit | bd47497a0171b96264927e3377254db13b9fe3e3 (patch) | |
| tree | 6fe8f9e9f9bcb592390b86af28a9fe01a5fafd78 /net/dsa/dsa.c | |
| parent | net: dsa: provide a switch device device tree node pointer (diff) | |
| download | kernel-bd47497a0171b96264927e3377254db13b9fe3e3.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
| -rw-r--r-- | net/dsa/dsa.c | 2 |
1 files changed, 2 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) if (!port_name) continue; + cd->port_dn[port_index] = port; + cd->port_names[port_index] = kstrdup(port_name, GFP_KERNEL); if (!cd->port_names[port_index]) { |
