Skip to content

Commit 4f33399

Browse files
jhovoldvinodkoul
authored andcommitted
phy: phy-snps-eusb2: rename phy_init() clock error label
Rename the clock error label which is now used to disable all clocks and not just the ref clock on phy_init() errors. Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 3232a6b commit 4f33399

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/phy/phy-snps-eusb2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,24 +474,24 @@ static int snps_eusb2_hsphy_init(struct phy *p)
474474
ret = reset_control_assert(phy->phy_reset);
475475
if (ret) {
476476
dev_err(&p->dev, "failed to assert phy_reset, %d\n", ret);
477-
goto disable_ref_clk;
477+
goto disable_clks;
478478
}
479479

480480
usleep_range(100, 150);
481481

482482
ret = reset_control_deassert(phy->phy_reset);
483483
if (ret) {
484484
dev_err(&p->dev, "failed to de-assert phy_reset, %d\n", ret);
485-
goto disable_ref_clk;
485+
goto disable_clks;
486486
}
487487

488488
ret = phy->data->phy_init(p);
489489
if (ret)
490-
goto disable_ref_clk;
490+
goto disable_clks;
491491

492492
return 0;
493493

494-
disable_ref_clk:
494+
disable_clks:
495495
clk_bulk_disable_unprepare(phy->data->num_clks, phy->clks);
496496
exit_repeater:
497497
phy_exit(phy->repeater);

0 commit comments

Comments
 (0)