diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-01 10:02:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-02 07:43:49 +0300 |
commit | 5817f977527e5cdbea9ca56d2b95824f59c8747d (patch) | |
tree | 6a8e5d5bbeb31ab6466a14268ba3a5a928b8488c /drivers | |
parent | 4613b279bee7954f1378c6339618641fdc4a675f (diff) | |
download | linux-5817f977527e5cdbea9ca56d2b95824f59c8747d.tar.xz |
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')
-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); |