]> git.baikalelectronics.ru Git - kernel.git/commit
memory: emif: Add check for setup_interrupts
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 24 Feb 2022 02:54:44 +0000 (10:54 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 4 Mar 2022 08:07:42 +0000 (09:07 +0100)
commit52d25dc16540a1e2b67ebe9431ce6e6e44a5c83d
treed0678e0f5afe1ad47774d469767c250ae8ef1c60
parent58784a056f705a08545674c799fec21d7f2d54f6
memory: emif: Add check for setup_interrupts

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: e8651aa472c4 ("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>
drivers/memory/emif.c