]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: xilinx: Use helper function devm_clk_get_optional_enabled()
authorZhang Zekun <zhangzekun11@huawei.com>
Wed, 4 Sep 2024 09:23:11 +0000 (17:23 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 5 Sep 2024 13:04:44 +0000 (15:04 +0200)
commit4e26ddab828f82f5ebf0fe6d92a6983ca13c519a
treeab07074cb495a04f8814de4f0097b30b2d47df0b
parent162b169656039027986f16b82a20745523dbf891
gpio: xilinx: Use helper function devm_clk_get_optional_enabled()

devm_clk_get_optional() and clk_prepare_enable() can be replaced by helper
function devm_clk_get_optional_enabled(). Let's simplify code with use of
devm_clk_get_optional_enabled() and avoid calling clk_disable_unprepare().

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Link: https://lore.kernel.org/r/20240904092311.9544-5-zhangzekun11@huawei.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-xilinx.c