]> 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:29:32 +0000 (16:29 +0200)
commit4c49d34f87a20cabb7886d4df2b3d80dba06c748
treead9db8e63a68f2db2c9b5c8d71b58077e379951b
parenta685bc3524f3f03430c97533357a69c26896bdae
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