dma: amba-pl08x: use vchan_dma_desc_free_list
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 27 Oct 2012 15:49:31 +0000 (00:49 +0900)
committerVinod Koul <vinod.koul@intel.com>
Tue, 8 Jan 2013 06:04:54 +0000 (22:04 -0800)
commit91998261dd0d5aefb56d87cef84f7810c32f6194
treecde4ac255948455dfa756007bf29dde89ae10d83
parente5a087fdc1ebe5bba40bcecb53c28a0af70e3b47
dma: amba-pl08x: use vchan_dma_desc_free_list

vchan_dma_desc_free_list() iterates through each virt_dma_desc in the
specified list_head and calls vchan->desc_free().

We can use it instead of repeated execution of pl08x_desc_free() for each
virt_dma_desc in the list_head.  Because vchan->desc_free callback is set
as pl08x_desc_free() for amba-pl08x driver.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <djbw@fb.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/amba-pl08x.c