Skip to content

Commit 5d97222

Browse files
Peter Chendavem330
authored andcommitted
ethernet: altera: add missing of_node_put
of_node_put needs to be called when the device node which is got from of_parse_phandle (or of_node_get) has finished using. Signed-off-by: Peter Chen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0a2f0d2 commit 5d97222

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/altera/altera_tse_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ static int init_phy(struct net_device *dev)
815815
phydev = of_phy_connect(dev, phynode,
816816
&altera_tse_adjust_link, 0, priv->phy_iface);
817817
}
818+
of_node_put(phynode);
818819

819820
if (!phydev) {
820821
netdev_err(dev, "Could not find the PHY\n");

0 commit comments

Comments
 (0)