diff options
author | Wang Jianzheng <wangjianzheng@vivo.com> | 2024-08-29 14:49:38 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-09-02 10:26:18 +0200 |
commit | 91bb8d0bf2fe69d0116d8f31c5c36b57ef3d8e20 (patch) | |
tree | 6df3b287a44b5d07bd19ac5ed0e5f5a60593a6ca /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 090e6fea5f5ed26643559c5f871bd1f6e748e4d0 (diff) |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions