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)
committerLee Jones <lee.jones@linaro.org>
Mon, 7 Mar 2022 14:00:27 +0000 (14:00 +0000)
commite477e51a41cb5d6034f3c5ea85a71ad4613996b9
tree279ba65489f6bc969afb360a3f07d76b00197e4b
parentc58e496311a50c087eeeaaae81083cd643fe5128
mfd: mc13xxx: Add check for mc13xxx_irq_request

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