linux/drivers/soc/ti
Miaoqian Lin c3d66a164c soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe
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
2022-02-02 13:37:04 -06:00
..
k3-ringacc.c soc: ti: k3-ringacc: Use devm_bitmap_zalloc() when applicable 2022-02-02 13:06:21 -06:00
k3-socinfo.c soc: ti: k3-socinfo: Add entry for J721S2 SoC family 2021-12-13 09:46:29 -06:00
Kconfig soc: ti: Kconfig: Drop ARM64 SoC specific configs 2020-11-21 19:22:01 -08:00
knav_dma.c soc: ti: knav_dma: Fix NULL vs IS_ERR() checking in dma_init 2021-12-16 06:34:07 -06:00
knav_qmss_acc.c soc: TI knav_qmss: make symbol 'knav_acc_range_ops' static 2020-07-24 14:47:10 -07:00
knav_qmss_queue.c soc: ti: knav_qmss: Put refcount for dev node in failure case 2021-01-24 20:51:36 -08:00
knav_qmss.h soc: ti: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00
Makefile ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
omap_prm.c soc: ti: omap-prm: Fix external abort for am335x pruss 2021-09-30 11:30:03 +03:00
pm33xx.c soc: ti: pm33xx: Fix some resource leak in the error handling paths of the probe function 2021-01-24 20:51:36 -08:00
pruss.c soc: ti: pruss: fix referenced node in error message 2021-11-22 19:40:55 -06:00
smartreflex.c soc: ti: smartreflex: Use platform_get_irq_optional() to get the interrupt 2022-02-02 13:11:40 -06:00
ti_sci_inta_msi.c soc: ti: ti_sci_inta_msi: Remove ti_sci_inta_msi_domain_free_irqs() 2021-12-16 22:22:19 +01:00
ti_sci_pm_domains.c soc: ti: ti_sci_pm_domains: check for proper args count in xlate 2020-10-29 22:13:38 +01:00
wkup_m3_ipc.c soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-02-02 13:37:04 -06:00