Commit 8a322226 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Vinod Koul

dmaengine: omap-dma: Reduce the number of virtual channels

Since the mapping between the hardware request lines and channels has been
removed it no longer make sense to have too many channels.
Set the number of channels to match with the number of logical channels
supported by sDMA.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent eea531ea
...@@ -1129,7 +1129,7 @@ static int omap_dma_probe(struct platform_device *pdev) ...@@ -1129,7 +1129,7 @@ static int omap_dma_probe(struct platform_device *pdev)
OMAP_SDMA_REQUESTS); OMAP_SDMA_REQUESTS);
} }
for (i = 0; i < od->dma_requests; i++) { for (i = 0; i < OMAP_SDMA_CHANNELS; i++) {
rc = omap_dma_chan_init(od); rc = omap_dma_chan_init(od);
if (rc) { if (rc) {
omap_dma_free(od); omap_dma_free(od);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment