Skip to content

Commit

Permalink
netdev: octeon_mgmt: Set the parent device.
Browse files Browse the repository at this point in the history
This establishes useful links in sysfs.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Daney committed Aug 31, 2012
1 parent f21105d commit 052958e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/octeon/octeon_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 052958e

Please sign in to comment.