diff options
author | Anand Moon <linux.amoon@gmail.com> | 2024-05-10 15:10:24 +0530 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2024-09-05 00:33:00 +0900 |
commit | 629277b7f575792ad24cc5fd8e708aaea2a5584c (patch) | |
tree | abffcd390d9948ee9afef4f194a73b3fd0a2c659 /certs | |
parent | 53e4e2b51727d325cd13feddd1d8d3d9be3df884 (diff) | |
download | lwn-629277b7f575792ad24cc5fd8e708aaea2a5584c.tar.gz lwn-629277b7f575792ad24cc5fd8e708aaea2a5584c.zip |
PM / devfreq: exynos: Use 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().
While at it, use dev_err_probe consistently, and use its return value
to return the error code.
Link: https://lore.kernel.org/lkml/20240510094034.12493-1-linux.amoon@gmail.com/
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions