mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 11:34:58 +00:00
of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. This commit fixes both local (in stmmac_axi_setup) and global (plat->phy_node) device_node for this issue, and using the correct device node when tries to put node at stmmac_probe_config_dt for error path. Signed-off-by: Peter Chen <[email protected]> Signed-off-by: David S. Miller <[email protected]>