[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1469586048-15697-2-git-send-email-peter.chen@nxp.com>
Date: Wed, 27 Jul 2016 10:20:34 +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 01/15] ethernet: altera: add missing of_node_put
of_node_put needs to be called when the device node which is got
from of_parse_phandle (or of_node_get) has finished using.
Signed-off-by: Peter Chen <peter.chen@....com>
---
drivers/net/ethernet/altera/altera_tse_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index 49025e9..bda31f3 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -815,6 +815,7 @@ static int init_phy(struct net_device *dev)
phydev = of_phy_connect(dev, phynode,
&altera_tse_adjust_link, 0, priv->phy_iface);
}
+ of_node_put(phynode);
if (!phydev) {
netdev_err(dev, "Could not find the PHY\n");
--
1.9.1
Powered by blists - more mailing lists