| commit | 180cf2e5f722e7125516f51803086394334cda4b | [log] [tgz] |
|---|---|---|
| author | Krzysztof Kozlowski <krzk@kernel.org> | Thu Aug 27 09:31:28 2020 +0200 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 29 09:57:52 2020 +0100 |
| tree | cd6883ee12f8ad145db34859ebe5293580082baf | |
| parent | e7f0b9ab8b7d49dd28aece9ee598f1faada34380 [diff] |
maiblox: mediatek: Fix handling of platform_get_irq() error
[ Upstream commit 558e4c36ec9f2722af4fe8ef84dc812bcdb5c43a ]
platform_get_irq() returns -ERRNO on error. In such case casting to u32
and comparing to 0 would pass the check.
Fixes: 623a6143a845 ("mailbox: mediatek: Add Mediatek CMDQ driver")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>