Commit 9de9aa48 authored by Emil Renner Berthing's avatar Emil Renner Berthing Committed by David S. Miller

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: fecd4d7e ("net: stmmac: dwmac-rk: Add integrated PHY support")
Signed-off-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2091a3d4
...@@ -1411,7 +1411,7 @@ static int rk_gmac_probe(struct platform_device *pdev) ...@@ -1411,7 +1411,7 @@ static int rk_gmac_probe(struct platform_device *pdev)
ret = rk_gmac_clk_init(plat_dat); ret = rk_gmac_clk_init(plat_dat);
if (ret) if (ret)
return ret; goto err_remove_config_dt;
ret = rk_gmac_powerup(plat_dat->bsp_priv); ret = rk_gmac_powerup(plat_dat->bsp_priv);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment