diff options
author | Huan Yang <[email protected]> | 2024-08-20 17:44:49 +0800 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2024-09-02 13:14:23 +0200 |
commit | d5714524fc2ce2a89fbe7abb06eccbb94920ec72 (patch) | |
tree | 6ab847f1742fb7cd7ca2a184533590faa24c0c5b /lib/crypto/mpi/mpi-sub-ui.c | |
parent | f41e6475ff100f71f8b90ccf5182e70dd2f9c11f (diff) |
thermal/drivers/sprd: Use devm_clk_get_enabled() helpers
The devm_clk_get_enabled() helpers:
- call devm_clk_get()
- call clk_prepare_enable() and register what is needed in order to
call clk_disable_unprepare() when needed, as a managed resource.
This simplifies the code and avoids the calls to clk_disable_unprepare().
Signed-off-by: Huan Yang <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions