Skip to content

Commit

Permalink
myri10ge: SET_NETDEV_DEV()
Browse files Browse the repository at this point in the history
SET_NETDEV_DEV() in myri10ge to create the "/sys/class/net/<if>/device"
symlink.

Signed-off-by: Maik Hampel <m.hampel@gmx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Maik Hampel authored and Jeff Garzik committed Jul 2, 2007
1 parent c529e63 commit b245fb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2854,6 +2854,8 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return -ENOMEM;
}

SET_NETDEV_DEV(netdev, &pdev->dev);

mgp = netdev_priv(netdev);
memset(mgp, 0, sizeof(*mgp));
mgp->dev = netdev;
Expand Down

0 comments on commit b245fb6

Please sign in to comment.