]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: mvebu: Fix devinit_dove_pinctrl_probe function
authorWang Jianzheng <wangjianzheng@vivo.com>
Thu, 29 Aug 2024 06:48:23 +0000 (14:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:38:13 +0000 (16:38 +0200)
commit3e7ed3367d12fb68d08ef699eeaefcefb48c09ef
treea9979712db6517902fb021acba15618574ac3ab0
parent4d482fc8cf00ca0ee58f675655ccb42880b90c4f
pinctrl: mvebu: Fix devinit_dove_pinctrl_probe function

[ Upstream commit c25478419f6fd3f74c324a21ec007cf14f2688d7 ]

When an error occurs during the execution of the function
__devinit_dove_pinctrl_probe, the clk is not properly disabled.

Fix this by calling clk_disable_unprepare before return.

Fixes: ba607b6238a1 ("pinctrl: mvebu: make pdma clock on dove mandatory")
Signed-off-by: Wang Jianzheng <wangjianzheng@vivo.com>
Link: https://lore.kernel.org/20240829064823.19808-1-wangjianzheng@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/mvebu/pinctrl-dove.c