mirror of https://gitee.com/openkylin/linux.git
net: fec: remove redundant ipg clock disable
Don't disable the ipg clock in the regulator error path. The clock is disable unconditionally two lines below the failed_regulator label. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cae9910e73
commit
2bb0f3b434
|
@ -3473,7 +3473,6 @@ fec_probe(struct platform_device *pdev)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&pdev->dev,
|
dev_err(&pdev->dev,
|
||||||
"Failed to enable phy regulator: %d\n", ret);
|
"Failed to enable phy regulator: %d\n", ret);
|
||||||
clk_disable_unprepare(fep->clk_ipg);
|
|
||||||
goto failed_regulator;
|
goto failed_regulator;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue