summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sirf-dma.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-03 01:17:20 +0200
committerVinod Koul <vinod.koul@intel.com>2016-09-05 16:40:52 +0530
commit524c6e04f826cea8a34a27136d8f5925df9213ed (patch)
tree326faa33e03fe2ecb9ca6889c50bdde632add40a /drivers/dma/sirf-dma.c
parent028e84a1de7cba6a3e4cf1a22094b76a4b92cefb (diff)
downloadlinux-524c6e04f826cea8a34a27136d8f5925df9213ed.tar.bz2
dmaengine: sirf: fix irq number error check
irq_of_parse_and_map() returns 0 on error, no NO_IRQ, so the failure condition can never be met. This changes the comparison to check for zero instead. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sirf-dma.c')
-rw-r--r--drivers/dma/sirf-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c
index d8bc3f2a71db..f5abe29e748f 100644
--- a/drivers/dma/sirf-dma.c
+++ b/drivers/dma/sirf-dma.c
@@ -869,7 +869,7 @@ static int sirfsoc_dma_probe(struct platform_device *op)
}
sdma->irq = irq_of_parse_and_map(dn, 0);
- if (sdma->irq == NO_IRQ) {
+ if (!sdma->irq) {
dev_err(dev, "Error mapping IRQ!\n");
return -EINVAL;
}