diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index 5d89db836659..c73d147230d3 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c @@ -3079,6 +3079,8 @@ static int rk_gmac_remove(struct platform_device *pdev) rk_gmac_powerdown(bsp_priv); dwmac_rk_remove_loopback_sysfs(&pdev->dev); + if (bsp_priv->phy_reset) + reset_control_put(bsp_priv->phy_reset); return ret; }