dmaengine: omap-dma: Reduce the number of virtual channels
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 9 Apr 2015 09:35:53 +0000 (12:35 +0300)
committerVinod Koul <vinod.koul@intel.com>
Sat, 9 May 2015 11:41:26 +0000 (17:11 +0530)
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: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/omap-dma.c

index b19b9ee..7f154c1 100644 (file)
@@ -1129,7 +1129,7 @@ static int omap_dma_probe(struct platform_device *pdev)
                         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);
                if (rc) {
                        omap_dma_free(od);