projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a2f0d2
)
ethernet: altera: add missing of_node_put
author
Peter Chen
<peter.chen@nxp.com>
Mon, 1 Aug 2016 07:02:29 +0000
(15:02 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 2 Aug 2016 04:42:57 +0000
(21:42 -0700)
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@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_tse_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/altera/altera_tse_main.c
b/drivers/net/ethernet/altera/altera_tse_main.c
index
49025e9
..
bda31f3
100644
(file)
--- 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");