diff options
author | Anand Moon <linux.amoon@gmail.com> | 2024-04-12 19:52:50 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-18 16:48:23 +0200 |
commit | 1ac579a4bfed5209f39eb75e98566925e4efcec1 (patch) | |
tree | ede401f3297f416454333eb607165f22ea5c0fe7 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | bd2cd796d2859c1a7cee326d7a9c0f77c6b95c71 (diff) |
usb: ehci-exynos: Use devm_clk_get_enabled() helpers
The devm_clk_get_enabled() helpers:
- call devm_clk_get()
- call clk_prepare_enable() and register what is needed in order to
call clk_disable_unprepare() when needed, as a managed resource.
This simplifies the code and avoids the calls to clk_disable_unprepare().
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20240412142317.5191-2-linux.amoon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions