linux-mips
[Top] [All Lists]

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

To: linux-mips@linux-mips.org, ralf@linux-mips.org, "David S. Miller" <davem@davemloft.net>, netdev@vger.kernel.org
Subject: [PATCH 5/8] netdev: octeon_mgmt: Set the parent device.
From: David Daney <ddaney.cavm@gmail.com>
Date: Tue, 21 Aug 2012 11:45:09 -0700
Cc: linux-kernel@vger.kernel.org, David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=mt6tnuFnQSI1yMZdcCn/j8GMX56KT2cMhE78hyVaqR4=; b=T+SZV7gDrv7G+Xg0loZCynvd0yjIyUuOHxKrUNk9hfUHkJo4fXhTZiXqnL7L61QMsI NDcEWmAIM04wp3x2IOeLR0tEDKPEjcoJus3q5g6SifPuvd1PB+c5hc3v7mqx28Eklxbf BiFSDRBIjpEIvu7Swbp3rd8FAjQ0x5q7wGZCjFaCIdFqk1kGmC2dQ0giLjIP1paV9gEK EVidyDFaCpBEBabJMlTwY/gg9OviPBz2BvWMaBCL1K8qkcxtSGX483w+W0M/miZHkWW8 J9Hj0uf5Skr94oQPRNf23+QPa/kqAjzh3FgLIR7//ho384n47gM0SN28CEmnTVoW/Tyk KMbA==
In-reply-to: <1345574712-21444-1-git-send-email-ddaney.cavm@gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1345574712-21444-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
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(+)

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,
-- 
1.7.11.4


<Prev in Thread] Current Thread [Next in Thread>