aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-22 12:22:12 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-22 12:22:12 -0500
commitf8eb9e7d2a198fe3a0f76d9e5b374160c26e4621 (patch)
treee5b381ca2738feb9a67a76e50eb26eb765c5086d
parent2d0a074517da34a6386bdd9a22bc006c8fa21044 (diff)
dma: mv_xor: fix error checking of irq_of_parse_and_map()
The irq_of_parse_and_map() function returns 0 on failure, and does not return an error code, so we fix the calling site of irq_of_parse_and_map() in the mv_xor driver. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--drivers/dma/mv_xor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 0d4c24e529f7..f2edd6a5536e 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -1312,8 +1312,8 @@ static int __devinit mv_xor_probe(struct platform_device *pdev)
1312 dma_cap_set(DMA_INTERRUPT, cap_mask); 1312 dma_cap_set(DMA_INTERRUPT, cap_mask);
1313 1313
1314 irq = irq_of_parse_and_map(np, 0); 1314 irq = irq_of_parse_and_map(np, 0);
1315 if (irq < 0) { 1315 if (!irq) {
1316 ret = irq; 1316 ret = -ENODEV;
1317 goto err_channel_add; 1317 goto err_channel_add;
1318 } 1318 }
1319 1319