]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
netdev: octeon_mgmt: Set the parent device.
authorDavid Daney <david.daney@cavium.com>
Tue, 21 Aug 2012 18:45:09 +0000 (11:45 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Aug 2012 07:12:43 +0000 (09:12 +0200)
This establishes useful links in sysfs.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
Acked-by: David S. Miller <davem@davemloft.net>
Patchwork: https://patchwork.linux-mips.org/patch/4286/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/net/ethernet/octeon/octeon_mgmt.c

index cf06cf23935edf63043cd62fea460db37c0a32a4..3bae01f4669b559cf018c223cd7637cc2876b8c1 100644 (file)
@@ -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,