From: Peter Ujfalusi Date: Thu, 31 Jul 2014 10:12:37 +0000 (+0300) Subject: dmaengine: edma: Do not change the error code returned from edma_alloc_slot X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04d537d95e2f48295b6f61ef7029a2dba75e3677;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dmaengine: edma: Do not change the error code returned from edma_alloc_slot In case of edma_alloc_slot() failure during probe we should return the error unchanged to make debugging easier. Signed-off-by: Peter Ujfalusi Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 3754ffa09f27..4190976ababc 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -1047,7 +1047,7 @@ static int edma_probe(struct platform_device *pdev) ecc->dummy_slot = edma_alloc_slot(ecc->ctlr, EDMA_SLOT_ANY); if (ecc->dummy_slot < 0) { dev_err(&pdev->dev, "Can't allocate PaRAM dummy slot\n"); - return -EIO; + return ecc->dummy_slot; } dma_cap_zero(ecc->dma_slave.cap_mask);