diff options
| author | Huan Yang <[email protected]> | 2024-08-22 01:59:55 +0000 |
|---|---|---|
| committer | Jassi Brar <[email protected]> | 2024-09-23 00:19:17 +0000 |
| commit | 0d97651b7577148242571b8692aae4a8b9ee0979 (patch) | |
| tree | b48a5084bca1956fdb1d9ecfb07400d390cb206c /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | mailbox: rockchip: fix a typo in module autoloading (diff) | |
| download | kernel-0d97651b7577148242571b8692aae4a8b9ee0979.tar.gz kernel-0d97651b7577148242571b8692aae4a8b9ee0979.zip | |
mailbox: sprd: 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().
Due to clk only used in probe, not in suspend\resume, this pointer can
remove from sprd_mbox_priv to save a little memory.
Signed-off-by: Huan Yang <[email protected]>
Reviewed-by: Christophe JAILLET <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Signed-off-by: Jassi Brar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
