summaryrefslogtreecommitdiffstats
path: root/drivers/net/myri10ge
diff options
context:
space:
mode:
authorMaik Hampel <m.hampel@gmx.de>2007-06-28 17:07:26 +0200
committerJeff Garzik <jeff@garzik.org>2007-07-02 14:24:51 +0200
commitb245fb675bf03d716b84dcb40885aeb50041dcca (patch)
tree1565ddaf350dec7a911033c921d9a655366f1e8b /drivers/net/myri10ge
parentMerge branch 'for_linus' of master.kernel.org:/pub/scm/linux/kernel/git/galak... (diff)
downloadlinux-b245fb675bf03d716b84dcb40885aeb50041dcca.tar.xz
linux-b245fb675bf03d716b84dcb40885aeb50041dcca.zip
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>
Diffstat (limited to 'drivers/net/myri10ge')
-rw-r--r--drivers/net/myri10ge/myri10ge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 0f9904fe3a5a..d0cc122fa3f0 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;