projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d97222
)
ethernet: apm: xgene: add missing of_node_put after calling of_parse_phandle
author
Peter Chen
<peter.chen@nxp.com>
Mon, 1 Aug 2016 07:02:30 +0000
(15:02 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 2 Aug 2016 04:43:47 +0000
(21:43 -0700)
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@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
b/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
index
7714b7d
..
37a0f46
100644
(file)
--- a/
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
+++ b/
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
@@
-772,6
+772,7
@@
int xgene_enet_phy_connect(struct net_device *ndev)
phy_dev = of_phy_connect(ndev, np, &xgene_enet_adjust_link,
0, pdata->phy_mode);
+ of_node_put(np);
if (!phy_dev) {
netdev_err(ndev, "Could not connect to PHY\n");
return -ENODEV;