diff options
-rw-r--r-- | drivers/dma/imx-dma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 346be6218058..f629e4961af5 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c | |||
@@ -335,8 +335,10 @@ static int __init imxdma_probe(struct platform_device *pdev) | |||
335 | 335 | ||
336 | imxdmac->imxdma_channel = imx_dma_request_by_prio("dmaengine", | 336 | imxdmac->imxdma_channel = imx_dma_request_by_prio("dmaengine", |
337 | DMA_PRIO_MEDIUM); | 337 | DMA_PRIO_MEDIUM); |
338 | if (imxdmac->channel < 0) | 338 | if ((int)imxdmac->channel < 0) { |
339 | ret = -ENODEV; | ||
339 | goto err_init; | 340 | goto err_init; |
341 | } | ||
340 | 342 | ||
341 | imx_dma_setup_handlers(imxdmac->imxdma_channel, | 343 | imx_dma_setup_handlers(imxdmac->imxdma_channel, |
342 | imxdma_irq_handler, imxdma_err_handler, imxdmac); | 344 | imxdma_irq_handler, imxdma_err_handler, imxdmac); |