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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:06:35 +0000 (09:06 +0200)
commita0063c082af0a1d838c264965d4c2d1f65d9a30c
tree51faa2ffb0b6545ebf06dd5420dd08339a49e319
parent23d741b4903e2b81270e7c2ed327aa61d1b59304
mfd: mc13xxx: Add check for mc13xxx_irq_request

[ 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>
drivers/mfd/mc13xxx-core.c