aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-07-31 06:12:37 -0400
committerVinod Koul <vinod.koul@intel.com>2014-07-31 07:57:47 -0400
commit04d537d95e2f48295b6f61ef7029a2dba75e3677 (patch)
tree544207dde8e8f6cd963a6b4cd83c9d039b983606 /drivers
parent10f5c8438475909a27b5fb1c3270d58ae5178ce2 (diff)
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')
-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)
1047 ecc->dummy_slot = edma_alloc_slot(ecc->ctlr, EDMA_SLOT_ANY); 1047 ecc->dummy_slot = edma_alloc_slot(ecc->ctlr, EDMA_SLOT_ANY);
1048 if (ecc->dummy_slot < 0) { 1048 if (ecc->dummy_slot < 0) {
1049 dev_err(&pdev->dev, "Can't allocate PaRAM dummy slot\n"); 1049 dev_err(&pdev->dev, "Can't allocate PaRAM dummy slot\n");
1050 return -EIO; 1050 return ecc->dummy_slot;
1051 } 1051 }
1052 1052
1053 dma_cap_zero(ecc->dma_slave.cap_mask); 1053 dma_cap_zero(ecc->dma_slave.cap_mask);