Skip to content

Commit

Permalink
net: fec: correct the error path for regulator disable in probe
Browse files Browse the repository at this point in the history
Correct the error path for regulator disable.

Fixes: 9269e55 ("net: fec: add phy-reset-gpios PROBE_DEFER check")
Signed-off-by: Fugang Duan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
fugangduan authored and davem330 committed Aug 14, 2020
1 parent b07e2a8 commit c6165cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3715,11 +3715,11 @@ fec_probe(struct platform_device *pdev)
failed_irq:
failed_init:
fec_ptp_stop(pdev);
if (fep->reg_phy)
regulator_disable(fep->reg_phy);
failed_reset:
pm_runtime_put_noidle(&pdev->dev);
pm_runtime_disable(&pdev->dev);
if (fep->reg_phy)
regulator_disable(fep->reg_phy);
failed_regulator:
clk_disable_unprepare(fep->clk_ahb);
failed_clk_ahb:
Expand Down

0 comments on commit c6165cf

Please sign in to comment.