Patchwork [5/8] netdev: octeon_mgmt: Set the parent device.

login
register
mail settings
Submitter ddaney.cavm@gmail.com
Date Aug. 21, 2012, 6:45 p.m.
Message ID <1345574712-21444-6-git-send-email-ddaney.cavm@gmail.com>
Download mbox | patch
Permalink /patch/179142/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

ddaney.cavm@gmail.com - Aug. 21, 2012, 6:45 p.m.
From: David Daney <david.daney@cavium.com>

This establishes useful links in sysfs.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 drivers/net/ethernet/octeon/octeon_mgmt.c | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/drivers/net/ethernet/octeon/octeon_mgmt.c b/drivers/net/ethernet/octeon/octeon_mgmt.c
index cf06cf2..3bae01f 100644
--- 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,