Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: moxart: remove NO_IRQ

The use of NO_IRQ is incorrect here and should never have been there,
as irq_of_parse_and_map() returns '0' on failure, not NO_IRQ.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Arnd Bergmann and committed by
Vinod Koul
2d9e31b9 29b4817d

+1 -1
+1 -1
drivers/dma/moxart-dma.c
··· 579 579 return -ENOMEM; 580 580 581 581 irq = irq_of_parse_and_map(node, 0); 582 - if (irq == NO_IRQ) { 582 + if (!irq) { 583 583 dev_err(dev, "no IRQ resource\n"); 584 584 return -EINVAL; 585 585 }