aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/octeon/octeon_mgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/octeon/octeon_mgmt.c')
-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)
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,