DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication
authorHongbo Zhang <hongbo.zhang@freescale.com>
Fri, 18 Apr 2014 08:17:47 +0000 (16:17 +0800)
committerVinod Koul <vinod.koul@intel.com>
Fri, 2 May 2014 16:47:42 +0000 (22:17 +0530)
There are several places where descriptors are freed using identical code.
This patch puts this code into a function to reduce code duplication.

Signed-off-by: Hongbo Zhang <hongbo.zhang@freescale.com>
Signed-off-by: Qiang Liu <qiang.liu@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/fsldma.c

Simple merge