diff options
author | 2024-08-29 14:49:38 +0800 | |
---|---|---|
committer | 2024-09-02 10:26:18 +0200 | |
commit | 91bb8d0bf2fe69d0116d8f31c5c36b57ef3d8e20 (patch) | |
tree | 6df3b287a44b5d07bd19ac5ed0e5f5a60593a6ca /scripts/generate_rust_analyzer.py | |
parent | pinctrl: Join split messages and remove double whitespace (diff) | |
download | linux-rng-91bb8d0bf2fe69d0116d8f31c5c36b57ef3d8e20.tar.xz linux-rng-91bb8d0bf2fe69d0116d8f31c5c36b57ef3d8e20.zip |
pinctrl: k210: 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: Wang Jianzheng <wangjianzheng@vivo.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/20240829064938.20114-1-wangjianzheng@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions