linux-stable/drivers/soc
Miaoqian Lin 8a8ddc414e soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe
[ Upstream commit c3d66a164c ]

platform_get_irq() returns negative error number instead 0 on failure.
And the doc of platform_get_irq() provides a usage example:

    int irq = platform_get_irq(pdev, 0);
    if (irq < 0)
        return irq;

Fix the check of return value to catch errors correctly.

Fixes: cdd5de500b ("soc: ti: Add wkup_m3_ipc driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Dave Gerlach <d-gerlach@ti.com>
Link: https://lore.kernel.org/r/20220114062840.16620-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:08:14 +02:00
..
actions
amlogic
atmel drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] 2021-02-03 23:22:21 +01:00
bcm
dove
fsl soc: fsl: qe: Check of ioremap return value 2022-03-08 19:01:58 +01:00
imx soc: imx: gpc: fix power up sequencing 2020-04-24 08:01:18 +02:00
lantiq
mediatek soc: mediatek: Check if power domains can be powered on at boot time 2020-12-29 13:46:50 +01:00
qcom soc: qcom: smsm: Fix missed interrupts if state changes while masked 2021-09-22 11:45:20 +02:00
renesas
rockchip soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally 2021-09-22 11:45:19 +02:00
samsung
sunxi
tegra soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:17:59 +01:00
ti soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-04-20 09:08:14 +02:00
ux500
versatile
zte
Kconfig
Makefile