Commit 2d9e31b9 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Vinod Koul

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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 29b4817d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment