ethernet: stmmac: dwmac-rk: Fix rebind failed for this driver

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I29f72b36defa3d5b29a00a574073a790c19289d9
This commit is contained in:
David Wu
2024-06-05 10:22:38 +08:00
committed by Tao Huang
parent eca19aef6a
commit 57fd1a671e

View File

@@ -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;
}