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

Commit 21de2732 authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman
Browse files

ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle



commit 5817f977527e5cdbea9ca56d2b95824f59c8747d upstream.

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>
Signed-off-by: default avatarSZ Lin (林上智) <sz.lin@moxa.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b3179842
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2108,6 +2108,7 @@ static int davinci_emac_remove(struct platform_device *pdev)
	cpdma_ctlr_destroy(priv->dma);

	unregister_netdev(ndev);
	of_node_put(priv->phy_node);
	free_netdev(ndev);

	return 0;