You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Vinod Koul
parent
10f5c84384
commit
04d537d95e
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user