maiblox: mediatek: Fix handling of platform_get_irq() error
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 27 Aug 2020 07:31:28 +0000 (09:31 +0200)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 13 Oct 2020 02:10:34 +0000 (21:10 -0500)
commit558e4c36ec9f2722af4fe8ef84dc812bcdb5c43a
treea4c90680ab1344f8f50125d09bc3c10b6fff424a
parent7002ca237b216d651d032439c45dc664f1f955bb
maiblox: mediatek: Fix handling of platform_get_irq() error

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>
drivers/mailbox/mtk-cmdq-mailbox.c