Commit 3d36dd1
i2c: cadence: Simplify using devm_clk_get_enabled()
Clock handling can be very simplified with using devm_clk_get_enabled() as
was done by commit 8d2aaf4 ("gpio: zynq: Simplify using
devm_clk_get_enabled()").
And also fix issue in connection to incorrect sequence when err_clk_dis
label is called.
When reset_control_deassert() fails it jumps to err_clk_dis label which
disables clock and also disable pm_runtime setup but nothing has been setup
at this time of failure because initialization is done below
reset_control_deassert() call.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250206115708.1085523-2-manikanta.guntupalli@amd.com1 parent ff885b6 commit 3d36dd1
1 file changed
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1541 | 1541 | | |
1542 | 1542 | | |
1543 | 1543 | | |
1544 | | - | |
| 1544 | + | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| |||
1551 | 1551 | | |
1552 | 1552 | | |
1553 | 1553 | | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
1558 | 1554 | | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
1564 | 1558 | | |
1565 | 1559 | | |
1566 | 1560 | | |
| |||
1616 | 1610 | | |
1617 | 1611 | | |
1618 | 1612 | | |
1619 | | - | |
1620 | | - | |
1621 | 1613 | | |
1622 | 1614 | | |
1623 | 1615 | | |
| |||
1642 | 1634 | | |
1643 | 1635 | | |
1644 | 1636 | | |
1645 | | - | |
1646 | 1637 | | |
1647 | 1638 | | |
1648 | 1639 | | |
| |||
0 commit comments