myri10ge: SET_NETDEV_DEV()

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>
This commit is contained in:
Maik Hampel 2007-06-28 17:07:26 +02:00 committed by Jeff Garzik
parent c529e632a2
commit b245fb675b
1 changed files with 2 additions and 0 deletions

View File

@ -2854,6 +2854,8 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return -ENOMEM; return -ENOMEM;
} }
SET_NETDEV_DEV(netdev, &pdev->dev);
mgp = netdev_priv(netdev); mgp = netdev_priv(netdev);
memset(mgp, 0, sizeof(*mgp)); memset(mgp, 0, sizeof(*mgp));
mgp->dev = netdev; mgp->dev = netdev;