dma: pl330: Use dma_get_slave_channel() in the of xlate callback
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Jan 2014 19:08:39 +0000 (20:08 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 20 Jan 2014 08:20:49 +0000 (13:50 +0530)
Currently the driver uses dma_request_channel() with a custom filter function to
find the requested channel. This will loop over all available channels until the
one we want has been found, but we already know which channel we want to
request, so we can dma_get_slave_channel(). This also makes the code a bit
shorter cleaner.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

No differences found