dmaengine: jz4780: Use dma_get_slave_channel when requesting a specific channel
authorAlex Smith <alex.smith@imgtec.com>
Fri, 24 Jul 2015 16:24:23 +0000 (17:24 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 18 Aug 2015 16:58:49 +0000 (22:28 +0530)
commitd3273e10ad871e903456a875e1062514cd13a244
tree69f4276a6a873a400c9b94c9161cfa5c0dfde728
parent839896ef3fdacf3a27460b6f6dabc6ac1475a00c
dmaengine: jz4780: Use dma_get_slave_channel when requesting a specific channel

When the DT requests a specific channel to use it is not necesssary
to scan through all DMA channels in the system. Just return the
requested channel using dma_get_slave_channel().

Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dma-jz4780.c