diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-01 09:02:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-02 06:43:49 +0200 |
commit | 5817f977527e5cdbea9ca56d2b95824f59c8747d (patch) | |
tree | 6a8e5d5bbeb31ab6466a14268ba3a5a928b8488c | |
parent | ethernet: stmicro: stmmac: add missing of_node_put after calling of_parse_pha... (diff) | |
download | linux-5817f977527e5cdbea9ca56d2b95824f59c8747d.tar.xz linux-5817f977527e5cdbea9ca56d2b95824f59c8747d.zip |
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>
-rw-r--r-- | drivers/net/ethernet/ti/davinci_emac.c | 1 |
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); |