[ 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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| k3-ringacc.c | ||
| k3-socinfo.c | ||
| knav_dma.c | ||
| knav_qmss.h | ||
| knav_qmss_acc.c | ||
| knav_qmss_queue.c | ||
| omap_prm.c | ||
| pm33xx.c | ||
| pruss.c | ||
| smartreflex.c | ||
| ti_sci_inta_msi.c | ||
| ti_sci_pm_domains.c | ||
| wkup_m3_ipc.c | ||