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)
commit86d19a5491d08fdc5a5cb4be5a09d5f88a6b96ba
treeb9cf63688839df5daea4333e38de9c01f7283c57
parent867dfa5dfcf4545b73e39ce95bf6abdafacf95bf
DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication

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