diff options
author | 2022-12-31 12:07:27 +0100 | |
---|---|---|
committer | 2023-04-22 12:53:56 +0200 | |
commit | 8fd15ace76a4aeb3648cf078541b5e6cfc91d5a2 (patch) | |
tree | f539c2745bcb84ac81436a31c9c75ec4312491d0 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | watchdog: s3c2410_wdt: Simplify using dev_err_probe() (diff) | |
download | wireguard-linux-8fd15ace76a4aeb3648cf078541b5e6cfc91d5a2.tar.xz wireguard-linux-8fd15ace76a4aeb3648cf078541b5e6cfc91d5a2.zip |
watchdog: ixp4xx: 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 <christophe.jaillet@wanadoo.fr>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/5d04e453a4da5cfafb56695a17157fa3ea296511.1672484831.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions