-
由 Miaoqian Lin 提交于
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: cdd5de50 ("soc: ti: Add wkup_m3_ipc driver") Signed-off-by: NMiaoqian Lin <linmq006@gmail.com> Signed-off-by: NNishanth Menon <nm@ti.com> Acked-by: NDave Gerlach <d-gerlach@ti.com> Link: https://lore.kernel.org/r/20220114062840.16620-1-linmq006@gmail.comc3d66a16