aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-08-27 20:04:50 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-28 01:59:40 -0400
commitbd47497a0171b96264927e3377254db13b9fe3e3 (patch)
tree6fe8f9e9f9bcb592390b86af28a9fe01a5fafd78 /net/dsa/dsa.c
parentfa981d9af82e08f316ed25ed43078f995cc4be0a (diff)
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/dsa.c')
-rw-r--r--net/dsa/dsa.c2
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)
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]) {