Skip to contentSkip to conversation

dmaengine: moxart: remove NO_IRQ

PATCH New Arnd Bergmann 1 participant 1 message Sep 2, 2016 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/dma/moxart-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/moxart-dma.c +1 -1
index a6e642792e5a..e1a5c2242f6f 100644
@@ -579,7 +579,7 @@ static int moxart_probe(struct platform_device *pdev)
 		return -ENOMEM;
 
 	irq = irq_of_parse_and_map(node, 0);
-	if (irq == NO_IRQ) {
+	if (!irq) {
 		dev_err(dev, "no IRQ resource\n");
 		return -EINVAL;
 	}
Signature · 1 line
2.9.0