diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-08-26 11:04:08 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2024-09-06 17:59:39 +0300 |
commit | 3c0e167c21721901413e8bc2293642f4ee6f983f (patch) | |
tree | a9dcdfcf3c2fdba0103b59e154565ee5f9e2d3c2 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d43b24f50da293009050e172e7c3769571db79c6 (diff) | |
download | linux-3c0e167c21721901413e8bc2293642f4ee6f983f.tar.xz |
mtd: rawnand: denali: Use the devm_clk_get_enabled() helper function
The devm_clk_get_enabled() helper:
- calls devm_clk_get()
- calls clk_prepare_enable() and registers what is needed in order to
call clk_disable_unprepare() when needed, as a managed resource.
This simplifies the code.
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240826080408.2522978-1-ruanjinjie@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions