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