diff options
author | Jinjie Ruan <[email protected]> | 2023-08-24 21:55:14 +0800 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2023-10-11 18:34:10 +0200 |
commit | bdb970186d156eb596f8f16f6e8467cdd5d57a70 (patch) | |
tree | adb1f643c41636af532aa87e1b40e79caa9c273d /scripts/generate_rust_analyzer.py | |
parent | c51a6977bd9560d7ef2ed35353b328f076e8a591 (diff) |
watchdog: sunplus: 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 and avoids the need of a dedicated function used
with devm_add_action_or_reset().
Signed-off-by: Jinjie Ruan <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions