Commit c6165cf0 authored by Fugang Duan's avatar Fugang Duan Committed by David S. Miller
Browse files

net: fec: correct the error path for regulator disable in probe



Correct the error path for regulator disable.

Fixes: 9269e556 ("net: fec: add phy-reset-gpios PROBE_DEFER check")
Signed-off-by: default avatarFugang Duan <fugang.duan@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b07e2a86
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: