]> 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>
Thu, 17 Oct 2024 13:11:01 +0000 (15:11 +0200)
commit70ce36ada30bd30bf9fb17b21fdc63dc3c07d3d2
treed3e2581b8ee53c9b272f6a7b707b1d7744a3b798
parent255527b8d416bdb6280a89285380d103e0492fd0
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