diff options
author | Sean Wang <sean.wang@mediatek.com> | 2016-09-01 10:47:33 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-31 20:53:48 -0700 |
commit | b5776f01bf1f36a6c89c6dc407dda6509002e0d7 (patch) | |
tree | 8bbc1c1c873658ae5cced1ee1fa63df926f4bf5a /drivers/net/ethernet/mediatek | |
parent | 79e9a41438527a4cc2b426a2dfb92cd0825d7d29 (diff) | |
download | linux-b5776f01bf1f36a6c89c6dc407dda6509002e0d7.tar.gz linux-b5776f01bf1f36a6c89c6dc407dda6509002e0d7.tar.bz2 linux-b5776f01bf1f36a6c89c6dc407dda6509002e0d7.zip |
net: ethernet: mediatek: fix the missing of_node_put() after node is used done inside mtk_mdio_init
This patch adds the missing of_node_put() after finishing the usage
of of_get_child_by_name.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 556951e66978..409efcf9b5c8 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -324,6 +324,7 @@ static int mtk_mdio_init(struct mtk_eth *eth) err = of_mdiobus_register(eth->mii_bus, mii_np); if (err) goto err_free_bus; + of_node_put(mii_np); return 0; |