]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
PM / devfreq: exynos: Use Use devm_clk_get_enabled() helpers
authorAnand Moon <linux.amoon@gmail.com>
Fri, 10 May 2024 09:40:24 +0000 (15:10 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 4 Sep 2024 15:33:00 +0000 (00:33 +0900)
commit629277b7f575792ad24cc5fd8e708aaea2a5584c
treeabffcd390d9948ee9afef4f194a73b3fd0a2c659
parent53e4e2b51727d325cd13feddd1d8d3d9be3df884
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>
drivers/devfreq/exynos-bus.c