mirror of https://gitee.com/openkylin/linux.git
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:
parent
c529e632a2
commit
b245fb675b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue