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

Commit e8c2993a authored by sean.wang@mediatek.com's avatar sean.wang@mediatek.com Committed by David S. Miller
Browse files

net: ethernet: mediatek: add the missing of_node_put() after node is used done



This patch adds the missing of_node_put() after finishing the usage
of of_parse_phandle() or of_node_get() used by fixed_phy.

Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d7005652
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -269,6 +269,8 @@ static int mtk_phy_connect(struct mtk_mac *mac)
				    ADVERTISED_Autoneg;
	phy_start_aneg(mac->phy_dev);

	of_node_put(np);

	return 0;
}