]> 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:33:09 +0000 (16:33 +0200)
commit7afb394b2e2ac86aee09cbb6d74dc8733799b3bf
tree74cd6eeab41106d6ce3c29246dc04a004afeab59
parent3f02356f7bbe1a976b6982dc0c13890b36256e42
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