diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2015-04-09 12:35:53 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-05-09 17:11:26 +0530 |
commit | 8a32222693af0edf4ad0ed2c6c4c9e383fd922dd (patch) | |
tree | 50396cda2670836c9ea6f3f692621085fb600073 /drivers/dma/omap-dma.c | |
parent | eea531ea4147f60708c7ee9e53b5735ec387adb6 (diff) | |
download | linux-8a32222693af0edf4ad0ed2c6c4c9e383fd922dd.tar.bz2 |
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: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/omap-dma.c')
-rw-r--r-- | drivers/dma/omap-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index b19b9ee8f1d1..7f154c138200 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c @@ -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); |