diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-09-03 00:41:10 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-09-05 14:10:52 +0300 |
commit | 2d9e31b9412cfcb432c1815fef0f72bc0a45542b (patch) | |
tree | 08bfb2da1d55e98b89e4286be3ec702424b98134 /drivers | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) | |
download | linux-2d9e31b9412cfcb432c1815fef0f72bc0a45542b.tar.xz |
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')
-rw-r--r-- | drivers/dma/moxart-dma.c | 2 |
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; } |