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

Commit d4e4da00 authored by Peter Chen's avatar Peter Chen Committed by David S. Miller
Browse files

ethernet: marvell: mvneta: add missing of_node_put after calling of_parse_phandle



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>
parent 453cafbc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4118,6 +4118,7 @@ static int mvneta_probe(struct platform_device *pdev)
			pp->bm_priv = NULL;
		}
	}
	of_node_put(bm_node);

	err = mvneta_init(&pdev->dev, pp);
	if (err < 0)