Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5817f977 authored by Peter Chen's avatar Peter Chen Committed by David S. Miller
Browse files

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: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4613b279
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1964,6 +1964,7 @@ static int davinci_emac_remove(struct platform_device *pdev)
	cpdma_ctlr_destroy(priv->dma);
	cpdma_ctlr_destroy(priv->dma);


	unregister_netdev(ndev);
	unregister_netdev(ndev);
	of_node_put(priv->phy_node);
	pm_runtime_disable(&pdev->dev);
	pm_runtime_disable(&pdev->dev);
	free_netdev(ndev);
	free_netdev(ndev);