diff options
author | Emil Renner Berthing <kernel@esmil.dk> | 2020-03-21 17:36:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-22 05:58:48 +0300 |
commit | 9de9aa487daff7a5c73434c24269b44ed6a428e6 (patch) | |
tree | 48ab4f0c91005cd1c5d5660f296e7150421cf110 | |
parent | 2091a3d42b4f339eaeed11228e0cbe9d4f92f558 (diff) | |
download | linux-9de9aa487daff7a5c73434c24269b44ed6a428e6.tar.xz |
net: stmmac: dwmac-rk: fix error path in rk_gmac_probe
Make sure we clean up devicetree related configuration
also when clock init fails.
Fixes: fecd4d7eef8b ("net: stmmac: dwmac-rk: Add integrated PHY support")
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index dc50ba13a746..2d5573b3dee1 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c @@ -1411,7 +1411,7 @@ static int rk_gmac_probe(struct platform_device *pdev) ret = rk_gmac_clk_init(plat_dat); if (ret) - return ret; + goto err_remove_config_dt; ret = rk_gmac_powerup(plat_dat->bsp_priv); if (ret) |