memory: emif: Add check for setup_interrupts
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 24 Feb 2022 02:54:44 +0000 (10:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:08:15 +0000 (09:08 +0200)
commit54eee30e4f3977cc489aa273cf72b94f6581fe64
tree7a92b4a3078b8e6a47daeedeb6a339e6c8d11afc
parent6e61d024d5f67bbe2d83d36e32887d1844074655
memory: emif: Add check for setup_interrupts

[ Upstream commit fd7bd80b46373887b390852f490f21b07e209498 ]

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

Fixes: 68b4aee35d1f ("memory: emif: add interrupt and temperature handling")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220224025444.3256530-1-jiasheng@iscas.ac.cn
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/memory/emif.c