summaryrefslogtreecommitdiff
path: root/drivers/net/dwc_eth_xgmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dwc_eth_xgmac.c')
-rw-r--r--drivers/net/dwc_eth_xgmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dwc_eth_xgmac.c b/drivers/net/dwc_eth_xgmac.c
index 03959ea95a5..d29d871ea8c 100644
--- a/drivers/net/dwc_eth_xgmac.c
+++ b/drivers/net/dwc_eth_xgmac.c
@@ -1102,7 +1102,7 @@ static int xgmac_probe(struct udevice *dev)
ret = xgmac->config->ops->xgmac_start_clks(dev);
if (ret < 0) {
pr_err("%s xgmac_start_clks() failed: %d\n", dev->name, ret);
- return ret;
+ goto err_remove_resources_core;
}
if (IS_ENABLED(CONFIG_DM_ETH_PHY))