dmaengine: omap-dma: Dynamically allocate memory for lch_map
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 20 Jul 2016 08:50:29 +0000 (11:50 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 10 Aug 2016 17:29:12 +0000 (22:59 +0530)
commit2d1a9a946faebfedd660a1f1c2b90984fff41f91
tree3cdb93e68802191edc1f42995e1df9a5d791bf10
parentb57ebe080cffb323b062fbff1a35ef59de3bd5d1
dmaengine: omap-dma: Dynamically allocate memory for lch_map

On OMAP1 platforms we do not have 32 channels available. Allocate the
lch_map based on the available channels. This way we are not going to have
more visible channels then it is available on the platform.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/omap-dma.c