Commit 7da1302
i2c: imx: Simplify using devm_clk_get_enabled()
devm_clk_get_enabled() returns the clk already (prepared and) enabled
and the automatically called cleanup cares for disabling (and
unpreparing). So simplify .probe() and .remove() accordingly.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>1 parent 7a28743 commit 7da1302
1 file changed
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1482 | 1482 | | |
1483 | 1483 | | |
1484 | 1484 | | |
1485 | | - | |
| 1485 | + | |
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | 1490 | | |
1497 | 1491 | | |
1498 | 1492 | | |
| |||
1564 | 1558 | | |
1565 | 1559 | | |
1566 | 1560 | | |
1567 | | - | |
1568 | 1561 | | |
1569 | 1562 | | |
1570 | 1563 | | |
| |||
1590 | 1583 | | |
1591 | 1584 | | |
1592 | 1585 | | |
1593 | | - | |
1594 | 1586 | | |
1595 | 1587 | | |
1596 | 1588 | | |
1597 | 1589 | | |
1598 | 1590 | | |
1599 | 1591 | | |
1600 | 1592 | | |
1601 | | - | |
1602 | | - | |
1603 | 1593 | | |
1604 | 1594 | | |
1605 | 1595 | | |
| |||
0 commit comments