kernel_optimize_test/drivers/soc
Miaoqian Lin 77406ac6ef soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe
[ Upstream commit c3d66a164c726cc3b072232d3b6d87575d194084 ]

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-08 14:40:07 +02:00
..
actions
amlogic
aspeed soc: aspeed: lpc-ctrl: Block error printing on probe defer cases 2022-02-23 12:01:06 +01:00
atmel
bcm
dove
fsl soc: fsl: qe: Check of ioremap return value 2022-03-08 19:09:37 +01:00
gemini
imx soc: imx: Register SoC device only on i.MX boards 2021-12-22 09:30:52 +01:00
ixp4xx
kendryte
lantiq
mediatek Revert "ASoC: mediatek: Check for error clk pointer" 2022-02-08 18:30:36 +01:00
qcom soc: qcom: aoss: remove spurious IRQF_ONESHOT flags 2022-04-08 14:40:06 +02:00
renesas
rockchip
samsung
sifive
sunxi
tegra soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:30:54 +01:00
ti soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-04-08 14:40:07 +02:00
ux500
versatile
xilinx
zte
Kconfig
Makefile