Skip to content

Commit 2bb0f3b

Browse files
baruchsiachdavem330
authored andcommitted
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>
1 parent cae9910 commit 2bb0f3b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/net/ethernet/freescale/fec_main.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,6 @@ fec_probe(struct platform_device *pdev)
34733473
if (ret) {
34743474
dev_err(&pdev->dev,
34753475
"Failed to enable phy regulator: %d\n", ret);
3476-
clk_disable_unprepare(fep->clk_ipg);
34773476
goto failed_regulator;
34783477
}
34793478
} else {

0 commit comments

Comments
 (0)