projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21105d
)
netdev: octeon_mgmt: Set the parent device.
author
David Daney
<david.daney@cavium.com>
Tue, 21 Aug 2012 18:45:09 +0000
(11:45 -0700)
committer
David Daney
<david.daney@cavium.com>
Fri, 31 Aug 2012 18:49:47 +0000
(11:49 -0700)
This establishes useful links in sysfs.
Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/octeon/octeon_mgmt.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/octeon/octeon_mgmt.c
b/drivers/net/ethernet/octeon/octeon_mgmt.c
index cf06cf23935edf63043cd62fea460db37c0a32a4..3bae01f4669b559cf018c223cd7637cc2876b8c1 100644
(file)
--- a/
drivers/net/ethernet/octeon/octeon_mgmt.c
+++ b/
drivers/net/ethernet/octeon/octeon_mgmt.c
@@
-1446,6
+1446,8
@@
static int __devinit octeon_mgmt_probe(struct platform_device *pdev)
if (netdev == NULL)
return -ENOMEM;
+ SET_NETDEV_DEV(netdev, &pdev->dev);
+
dev_set_drvdata(&pdev->dev, netdev);
p = netdev_priv(netdev);
netif_napi_add(netdev, &p->napi, octeon_mgmt_napi_poll,