Commit 9365facd authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jialin Zhang
Browse files

mfd: fsl-imx25: Fix an error handling path in mx25_tsadc_setup_irq()

stable inclusion
from stable-v5.10.150
commit 08d40518033dc3663b1bd334a7481cd6b116f49b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=08d40518033dc3663b1bd334a7481cd6b116f49b



--------------------------------

[ Upstream commit 3fa9e4cf ]

If devm_of_platform_populate() fails, some resources need to be
released.

Introduce a mx25_tsadc_unset_irq() function that undoes
mx25_tsadc_setup_irq() and call it both from the new error handling path
of the probe and in the remove function.

Fixes: a55196ef ("mfd: fsl-imx25: Use devm_of_platform_populate()")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/d404e04828fc06bcfddf81f9f3e9b4babbe35415.1659269156.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent a40c86b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment