projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c529e63
)
myri10ge: SET_NETDEV_DEV()
author
Maik Hampel
<m.hampel@gmx.de>
Thu, 28 Jun 2007 15:07:26 +0000
(17:07 +0200)
committer
Jeff Garzik
<jeff@garzik.org>
Mon, 2 Jul 2007 12:24:51 +0000
(08:24 -0400)
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>
drivers/net/myri10ge/myri10ge.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/myri10ge/myri10ge.c
b/drivers/net/myri10ge/myri10ge.c
index 0f9904fe3a5a2b4273ffe5901846f627233fa818..d0cc122fa3f0f0710eb610f7d23cbdbd7527469a 100644
(file)
--- 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;