From: David Daney Date: Tue, 21 Aug 2012 18:45:09 +0000 (-0700) Subject: netdev: octeon_mgmt: Set the parent device. X-Git-Tag: upstream/snapshot3+hdmi~6497^2~10^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=052958e347a0219313730ee7c437edfab0611ec1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git netdev: octeon_mgmt: Set the parent device. This establishes useful links in sysfs. Signed-off-by: David Daney Acked-by: David S. Miller --- 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,