diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-12-30 17:59:56 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-19 15:51:28 +0100 |
| commit | 03e30f06e5286bc91ba4785d33c1d3fa03e8a442 (patch) | |
| tree | 9ff2b2f1009f84732ab2ced846c029aa094e8baa /scripts/gdb/linux/timerlist.py | |
| parent | 6e054678ff5c10840ce801dfdb2d4898decb2b63 (diff) | |
serial: sccnxp: 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.
This also avoids some other warnings/issues. (see [1])
[1]: https://lore.kernel.org/all/20221118233101.never.215-kees@kernel.org/
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/735a807c2df835aa436dcbc76b374f983f89a9af.1672419577.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions
