Commit 7dc92ec
pinctrl: sunxi: Use devm_clk_get_enabled() helpers
sunxi sunxi_pinctrl_init_with_variant get, enable clk and
deinit_device disable and unprepare it.
This simplifes the code and avoids the calls to
clk_disable_unprepare().
Signed-off-by: Wang Jianzheng <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Linus Walleij <[email protected]>1 parent 5213518 commit 7dc92ec
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1603 | 1603 | | |
1604 | 1604 | | |
1605 | 1605 | | |
1606 | | - | |
| 1606 | + | |
1607 | 1607 | | |
1608 | 1608 | | |
1609 | 1609 | | |
1610 | 1610 | | |
1611 | 1611 | | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | 1612 | | |
1617 | 1613 | | |
1618 | 1614 | | |
1619 | 1615 | | |
1620 | 1616 | | |
1621 | 1617 | | |
1622 | | - | |
| 1618 | + | |
1623 | 1619 | | |
1624 | 1620 | | |
1625 | 1621 | | |
1626 | 1622 | | |
1627 | 1623 | | |
1628 | 1624 | | |
1629 | | - | |
| 1625 | + | |
1630 | 1626 | | |
1631 | 1627 | | |
1632 | 1628 | | |
| |||
1637 | 1633 | | |
1638 | 1634 | | |
1639 | 1635 | | |
1640 | | - | |
| 1636 | + | |
1641 | 1637 | | |
1642 | 1638 | | |
1643 | 1639 | | |
| |||
1669 | 1665 | | |
1670 | 1666 | | |
1671 | 1667 | | |
1672 | | - | |
1673 | | - | |
1674 | 1668 | | |
1675 | 1669 | | |
1676 | 1670 | | |
| |||
0 commit comments