diff options
author | Anand Moon <[email protected]> | 2024-04-12 19:52:50 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-04-18 16:48:23 +0200 |
commit | 1ac579a4bfed5209f39eb75e98566925e4efcec1 (patch) | |
tree | ede401f3297f416454333eb607165f22ea5c0fe7 /rust/helpers/helpers.c | |
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 <[email protected]>
Reviewed-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions