Skip to content

Commit

Permalink
ethernet: ti: davinci_emac: add missing of_node_put after calling of_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Peter Chen authored and David S. Miller committed Aug 2, 2016
1 parent 4613b27 commit 5817f97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/ti/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5817f97

Please sign in to comment.