diff options
| author | Christophe JAILLET <[email protected]> | 2022-12-31 15:25:31 +0100 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2023-02-12 15:32:46 +0100 |
| commit | a8a9b98057458cfcbf145af647916ca9f1a63ccb (patch) | |
| tree | b93e39840aebfa82e72a156312552a35e9679eb1 /tools/perf/scripts/python/flamegraph.py | |
| parent | 3c22939eb345952b5c814df9cc6f9b2d56982453 (diff) | |
watchdog: pnx4008: Use devm_clk_get_enabled() helper
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 and avoids the need of a dedicated function used
with devm_add_action_or_reset().
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/61f4e39db4c88408ee0149580e9aa925b784bc93.1672496714.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions