]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: k210: Use devm_clk_get_enabled() helpers
authorWang Jianzheng <wangjianzheng@vivo.com>
Thu, 29 Aug 2024 06:49:38 +0000 (14:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 2 Sep 2024 08:26:18 +0000 (10:26 +0200)
commit91bb8d0bf2fe69d0116d8f31c5c36b57ef3d8e20
tree6df3b287a44b5d07bd19ac5ed0e5f5a60593a6ca
parent090e6fea5f5ed26643559c5f871bd1f6e748e4d0
pinctrl: k210: 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: Wang Jianzheng <wangjianzheng@vivo.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/20240829064938.20114-1-wangjianzheng@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-k210.c