]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mfd: mc13xxx: Add check for mc13xxx_irq_request
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 24 Feb 2022 02:23:31 +0000 (10:23 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:39:08 +0000 (14:39 +0200)
commit94077f09d1db3c9ffca825faef939e5910842960
tree592b29dde179cb606dab2a38cf55188c552806bf
parent6f80758688cb13fd4f64b80a9c955f760841771e
mfd: mc13xxx: Add check for mc13xxx_irq_request

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit e477e51a41cb5d6034f3c5ea85a71ad4613996b9 ]

As the potential failure of the devm_request_threaded_irq(),
it should be better to check the return value of the
mc13xxx_irq_request() and return error if fails.

Fixes: 8e00593557c3 ("mfd: Add mc13892 support to mc13xxx")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220224022331.3208275-1-jiasheng@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 0a0c75ce5e2615cdd926e8f3e54cc120277d40e0)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/mfd/mc13xxx-core.c