projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f5c84
)
dmaengine: edma: Do not change the error code returned from edma_alloc_slot
author
Peter Ujfalusi
<peter.ujfalusi@ti.com>
Thu, 31 Jul 2014 10:12:37 +0000
(13:12 +0300)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 31 Jul 2014 11:57:47 +0000
(17:27 +0530)
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>
drivers/dma/edma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/edma.c
b/drivers/dma/edma.c
index 3754ffa09f273c6bd124db119830e669bedbf6d1..4190976ababcc51d9633e18ae150cf17e198210a 100644
(file)
--- 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);