ethernet: stmicro: stmmac: add missing of_node_put after calling of_parse_phandle
[cascardo/linux.git] / drivers / net / ethernet / stmicro / stmmac / stmmac_main.c
index c23ccab..4c8c60a 100644 (file)
@@ -3397,6 +3397,7 @@ int stmmac_dvr_remove(struct device *dev)
        stmmac_set_mac(priv->ioaddr, false);
        netif_carrier_off(ndev);
        unregister_netdev(ndev);
+       of_node_put(priv->plat->phy_node);
        if (priv->stmmac_rst)
                reset_control_assert(priv->stmmac_rst);
        clk_disable_unprepare(priv->pclk);