aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/moxart-dma.c
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 16:40:52 +0530
commit2d9e31b9412cfcb432c1815fef0f72bc0a45542b (patch)
tree08bfb2da1d55e98b89e4286be3ec702424b98134 /drivers/dma/moxart-dma.c
parentLinux 4.8-rc1 (diff)
downloadlinux-dev-2d9e31b9412cfcb432c1815fef0f72bc0a45542b.tar.xz
linux-dev-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/moxart-dma.c')
-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;
}