summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-02 23:41:10 +0200
committerVinod Koul <vinod.koul@intel.com>2016-09-05 13:10:52 +0200
commit2d9e31b9412cfcb432c1815fef0f72bc0a45542b (patch)
tree08bfb2da1d55e98b89e4286be3ec702424b98134 /drivers/dma
parentLinux 4.8-rc1 (diff)
downloadlinux-2d9e31b9412cfcb432c1815fef0f72bc0a45542b.tar.xz
linux-2d9e31b9412cfcb432c1815fef0f72bc0a45542b.zip
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/moxart-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/moxart-dma.c b/drivers/dma/moxart-dma.c
index a6e642792e5a..e1a5c2242f6f 100644
--- a/drivers/dma/moxart-dma.c
+++ b/drivers/dma/moxart-dma.c
@@ -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;
}