diff options
author | Maik Hampel <m.hampel@gmx.de> | 2007-06-28 11:07:26 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-02 08:24:51 -0400 |
commit | b245fb675bf03d716b84dcb40885aeb50041dcca (patch) | |
tree | 1565ddaf350dec7a911033c921d9a655366f1e8b /drivers | |
parent | c529e632a286cd9e493398fa73e0aa1fc5a45ce5 (diff) |
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')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 2 |
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) | |||
2854 | return -ENOMEM; | 2854 | return -ENOMEM; |
2855 | } | 2855 | } |
2856 | 2856 | ||
2857 | SET_NETDEV_DEV(netdev, &pdev->dev); | ||
2858 | |||
2857 | mgp = netdev_priv(netdev); | 2859 | mgp = netdev_priv(netdev); |
2858 | memset(mgp, 0, sizeof(*mgp)); | 2860 | memset(mgp, 0, sizeof(*mgp)); |
2859 | mgp->dev = netdev; | 2861 | mgp->dev = netdev; |