mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle
commit 5817f97752 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: Peter Chen <peter.chen@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: SZ Lin (林上智) <sz.lin@moxa.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b317984257
commit
21de2732aa
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user