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:
4613b27
)
ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle
author
Peter Chen
<peter.chen@nxp.com>
Mon, 1 Aug 2016 07:02:43 +0000
(15:02 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 2 Aug 2016 04:43:49 +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/ti/davinci_emac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/davinci_emac.c
b/drivers/net/ethernet/ti/davinci_emac.c
index
6e305a8
..
727a79f
100644
(file)
--- a/
drivers/net/ethernet/ti/davinci_emac.c
+++ b/
drivers/net/ethernet/ti/davinci_emac.c
@@
-1964,6
+1964,7
@@
static int davinci_emac_remove(struct platform_device *pdev)
cpdma_ctlr_destroy(priv->dma);
unregister_netdev(ndev);
+ of_node_put(priv->phy_node);
pm_runtime_disable(&pdev->dev);
free_netdev(ndev);