Skip to content

Commit 9de9aa4

Browse files
esmildavem330
authored andcommitted
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: fecd4d7 ("net: stmmac: dwmac-rk: Add integrated PHY support") Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2091a3d commit 9de9aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ static int rk_gmac_probe(struct platform_device *pdev)
14111411

14121412
ret = rk_gmac_clk_init(plat_dat);
14131413
if (ret)
1414-
return ret;
1414+
goto err_remove_config_dt;
14151415

14161416
ret = rk_gmac_powerup(plat_dat->bsp_priv);
14171417
if (ret)

0 commit comments

Comments
 (0)