dma: pl330: split off common code to give back descriptors
authorChanho Park <chanho61.park@samsung.com>
Fri, 9 Aug 2013 11:11:33 +0000 (20:11 +0900)
committerVinod Koul <vinod.koul@intel.com>
Tue, 13 Aug 2013 12:09:45 +0000 (17:39 +0530)
commit52a9d179109c50b1a5077cc2a653295fa131f0d0
treeb439173b06832025c8ee80471c90e0832336f359
parent2a76689bcaecf35391e6ddc8a00c09c79d6d5857
dma: pl330: split off common code to give back descriptors

This patch adds __pl330_giveback_descs which give back descriptors when fails
allocating descriptors. It requires to eliminate duplication for
pl330_prep_dma_sg which will be added later.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Acked-by : Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c