]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: mb86s7x: Use helper function devm_clk_get_optional_enabled()
authorZhang Zekun <zhangzekun11@huawei.com>
Wed, 4 Sep 2024 09:23:10 +0000 (17:23 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 5 Sep 2024 13:04:44 +0000 (15:04 +0200)
commit162b169656039027986f16b82a20745523dbf891
treea233570b4d673ea0d58e1e93ee415281acd4f0bd
parent8abc67adc9ac1ba4d322b24e00027b8ccdba25c0
gpio: mb86s7x: 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-4-zhangzekun11@huawei.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mb86s7x.c