diff options
author | Christophe JAILLET <[email protected]> | 2022-12-31 12:14:30 +0100 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2023-04-22 12:53:57 +0200 |
commit | 07d41160b3b65c621f9352196c3791fdc7d2380d (patch) | |
tree | bd8d1774509ec8c8e2333f2811988fe2774692a3 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 8fd15ace76a4aeb3648cf078541b5e6cfc91d5a2 (diff) |
watchdog: loongson1: 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/624106aa86ef7e49f16b11b229528eabd63de8f7.1672485257.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/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions