]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: sunxi: Use devm_clk_get_enabled() helpers
authorWang Jianzheng <wangjianzheng@vivo.com>
Thu, 29 Aug 2024 06:47:37 +0000 (14:47 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 2 Sep 2024 08:06:13 +0000 (10:06 +0200)
commit7dc92ece32ed87a352e285e3d9f0d392b61443e2
tree696ebcea84612d82ff28f132887f4ce1342b015c
parent5213518d5ab7d5191490b93a306bbc6f2356d3c1
pinctrl: sunxi: Use devm_clk_get_enabled() helpers

sunxi sunxi_pinctrl_init_with_variant get, enable clk and
deinit_device disable and unprepare it.

This simplifes the code and avoids the calls to
clk_disable_unprepare().

Signed-off-by: Wang Jianzheng <wangjianzheng@vivo.com>
Link: https://lore.kernel.org/20240829064737.16169-1-wangjianzheng@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c