aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-07-31 13:12:37 +0300
committerVinod Koul <vinod.koul@intel.com>2014-07-31 17:27:47 +0530
commit04d537d95e2f48295b6f61ef7029a2dba75e3677 (patch)
tree544207dde8e8f6cd963a6b4cd83c9d039b983606 /drivers/dma
parentdmaengine: rcar-dmac: Add device tree bindings documentation (diff)
downloadlinux-dev-04d537d95e2f48295b6f61ef7029a2dba75e3677.tar.xz
linux-dev-04d537d95e2f48295b6f61ef7029a2dba75e3677.zip
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 <peter.ujfalusi@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/edma.c2
1 files changed, 1 insertions, 1 deletions
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);