From 57fd1a671e73e9f71d6ab15490cb61edbe4f6ba3 Mon Sep 17 00:00:00 2001 From: David Wu Date: Wed, 5 Jun 2024 10:22:38 +0800 Subject: [PATCH] ethernet: stmmac: dwmac-rk: Fix rebind failed for this driver Signed-off-by: David Wu Change-Id: I29f72b36defa3d5b29a00a574073a790c19289d9 --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 ++ 1 file changed, 2 insertions(+) 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; }