net: fec: correct the error path for regulator disable in probe
[ Upstream commitc6165cf0db
] Correct the error path for regulator disable. Fixes:9269e5560b
("net: fec: add phy-reset-gpios PROBE_DEFER check") Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f3926733dc
commit
3f9f6b032d
@ -3505,11 +3505,11 @@ failed_mii_init:
|
|||||||
failed_irq:
|
failed_irq:
|
||||||
failed_init:
|
failed_init:
|
||||||
fec_ptp_stop(pdev);
|
fec_ptp_stop(pdev);
|
||||||
if (fep->reg_phy)
|
|
||||||
regulator_disable(fep->reg_phy);
|
|
||||||
failed_reset:
|
failed_reset:
|
||||||
pm_runtime_put_noidle(&pdev->dev);
|
pm_runtime_put_noidle(&pdev->dev);
|
||||||
pm_runtime_disable(&pdev->dev);
|
pm_runtime_disable(&pdev->dev);
|
||||||
|
if (fep->reg_phy)
|
||||||
|
regulator_disable(fep->reg_phy);
|
||||||
failed_regulator:
|
failed_regulator:
|
||||||
failed_clk_ipg:
|
failed_clk_ipg:
|
||||||
fec_enet_clk_enable(ndev, false);
|
fec_enet_clk_enable(ndev, false);
|
||||||
|
Reference in New Issue
Block a user