Skip to content

Commit

Permalink
net: stmmac: dwmac-rk: fix error path in rk_gmac_probe
Browse files Browse the repository at this point in the history
Make sure we clean up devicetree related configuration
also when clock init fails.

Fixes: fecd4d7 ("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>
  • Loading branch information
Emil Renner Berthing authored and David S. Miller committed Mar 22, 2020
1 parent 2091a3d commit 9de9aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9de9aa4

Please sign in to comment.