summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2012-08-21 11:45:09 -0700
committerDavid Daney <david.daney@cavium.com>2012-08-31 11:49:47 -0700
commit052958e347a0219313730ee7c437edfab0611ec1 (patch)
tree59358763ac10d2529d348a355fee8d6d73b6d615
parentf21105df0f999f468f1f03e1ff53fe055e149341 (diff)
netdev: octeon_mgmt: Set the parent device.
This establishes useful links in sysfs. Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/octeon/octeon_mgmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/octeon/octeon_mgmt.c b/drivers/net/ethernet/octeon/octeon_mgmt.c
index cf06cf23935e..3bae01f4669b 100644
--- a/drivers/net/ethernet/octeon/octeon_mgmt.c
+++ b/drivers/net/ethernet/octeon/octeon_mgmt.c
@@ -1446,6 +1446,8 @@ static int __devinit octeon_mgmt_probe(struct platform_device *pdev)
if (netdev == NULL)
return -ENOMEM;
+ SET_NETDEV_DEV(netdev, &pdev->dev);
+
dev_set_drvdata(&pdev->dev, netdev);
p = netdev_priv(netdev);
netif_napi_add(netdev, &p->napi, octeon_mgmt_napi_poll,