android_kernel_sony_sdm845/drivers/soc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Miaoqian Lin a00e2fd407 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-20 09:06:32 +02:00
..
bcm soc: bcm: brcmstb: Don't leak device tree node reference 2019-02-12 19:44:53 +01:00
dove
fsl soc: fsl: qe: Check of ioremap return value 2022-03-08 19:00:58 +01:00
mediatek soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher 2019-06-22 08:17:15 +02:00
qcom soc: qcom: smsm: Fix missed interrupts if state changes while masked 2021-09-22 11:43:00 +02:00
renesas
rockchip
samsung
sunxi
tegra soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:05:14 +01:00
ti soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-04-20 09:06:32 +02:00
ux500
versatile
Kconfig
Makefile