From: Maik Hampel Date: Thu, 28 Jun 2007 15:07:26 +0000 (+0200) Subject: myri10ge: SET_NETDEV_DEV() X-Git-Tag: v2.6.22~47^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b245fb675bf03d716b84dcb40885aeb50041dcca;p=linux-2.6-omap-h63xx.git myri10ge: SET_NETDEV_DEV() SET_NETDEV_DEV() in myri10ge to create the "/sys/class/net//device" symlink. Signed-off-by: Maik Hampel Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index 0f9904fe3a5..d0cc122fa3f 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c @@ -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;