summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2016-08-01 15:02:43 +0800
committerDavid S. Miller <davem@davemloft.net>2016-08-01 21:43:49 -0700
commit5817f977527e5cdbea9ca56d2b95824f59c8747d (patch)
tree6a8e5d5bbeb31ab6466a14268ba3a5a928b8488c /drivers/net
parent4613b279bee7954f1378c6339618641fdc4a675f (diff)
downloadlinux-5817f977527e5cdbea9ca56d2b95824f59c8747d.tar.bz2
ethernet: ti: davinci_emac: 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@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/ti/davinci_emac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
index 6e305a82ed43..727a79f3c7dd 100644
--- 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);