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>
This commit is contained in:
parent
2d0a074517
commit
f8eb9e7d2a
|
@ -1312,8 +1312,8 @@ static int __devinit mv_xor_probe(struct platform_device *pdev)
|
||||||
dma_cap_set(DMA_INTERRUPT, cap_mask);
|
dma_cap_set(DMA_INTERRUPT, cap_mask);
|
||||||
|
|
||||||
irq = irq_of_parse_and_map(np, 0);
|
irq = irq_of_parse_and_map(np, 0);
|
||||||
if (irq < 0) {
|
if (!irq) {
|
||||||
ret = irq;
|
ret = -ENODEV;
|
||||||
goto err_channel_add;
|
goto err_channel_add;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue