diff options
author | David Daney <david.daney@cavium.com> | 2012-08-21 14:45:09 -0400 |
---|---|---|
committer | David Daney <david.daney@cavium.com> | 2012-08-31 14:49:47 -0400 |
commit | 052958e347a0219313730ee7c437edfab0611ec1 (patch) | |
tree | 59358763ac10d2529d348a355fee8d6d73b6d615 /drivers/net/ethernet/octeon | |
parent | f21105df0f999f468f1f03e1ff53fe055e149341 (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>
Diffstat (limited to 'drivers/net/ethernet/octeon')
-rw-r--r-- | drivers/net/ethernet/octeon/octeon_mgmt.c | 2 |
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) | |||
1446 | if (netdev == NULL) | 1446 | if (netdev == NULL) |
1447 | return -ENOMEM; | 1447 | return -ENOMEM; |
1448 | 1448 | ||
1449 | SET_NETDEV_DEV(netdev, &pdev->dev); | ||
1450 | |||
1449 | dev_set_drvdata(&pdev->dev, netdev); | 1451 | dev_set_drvdata(&pdev->dev, netdev); |
1450 | p = netdev_priv(netdev); | 1452 | p = netdev_priv(netdev); |
1451 | netif_napi_add(netdev, &p->napi, octeon_mgmt_napi_poll, | 1453 | netif_napi_add(netdev, &p->napi, octeon_mgmt_napi_poll, |