net: fec: remove redundant ipg clock disable
authorBaruch Siach <baruch@tkos.co.il>
Wed, 22 May 2019 13:56:15 +0000 (16:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:34:03 +0000 (17:34 -0700)
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>
drivers/net/ethernet/freescale/fec_main.c

index aa7d4e27c5d121497c8511dff2c300a81d351990..f63eb2b57c3e9778396c4c4f19caa8600aa16f1e 100644 (file)
@@ -3473,7 +3473,6 @@ fec_probe(struct platform_device *pdev)
                if (ret) {
                        dev_err(&pdev->dev,
                                "Failed to enable phy regulator: %d\n", ret);
-                       clk_disable_unprepare(fep->clk_ipg);
                        goto failed_regulator;
                }
        } else {