[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1470034963-30506-3-git-send-email-peter.chen@nxp.com>
Date: Mon, 1 Aug 2016 15:02:30 +0800
From: Peter Chen <peter.chen@....com>
To: <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <vbridger@...nsource.altera.com>,
<isubramanian@....com>, <kchudgar@....com>,
<yisen.zhuang@...wei.com>, <salil.mehta@...wei.com>,
<thomas.petazzoni@...e-electrons.com>,
<sergei.shtylyov@...entembedded.com>, <peppe.cavallaro@...com>,
<alexandre.torgue@...com>, <mugunthanvnm@...com>,
<tremyfr@...il.com>, <wxt@...k-chips.com>, <arnd@...db.de>,
<david.daney@...ium.com>, <huangdaode@...ilicon.com>,
<jszhang@...vell.com>, Peter Chen <peter.chen@....com>
Subject: [PATCH v2 02/15] ethernet: apm: xgene: add missing of_node_put after calling of_parse_phandle
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Signed-off-by: Peter Chen <peter.chen@....com>
---
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c b/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
index 2f5638f..fb23408 100644
--- a/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
+++ b/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
@@ -758,6 +758,7 @@ static int xgene_enet_phy_connect(struct net_device *ndev)
phy_dev = of_phy_connect(ndev, phy_np, &xgene_enet_adjust_link,
0, pdata->phy_mode);
+ of_node_put(phy_np);
if (!phy_dev) {
netdev_err(ndev, "Could not connect to PHY\n");
return -ENODEV;
--
1.9.1
Powered by blists - more mailing lists