]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1a9467d0009fdec852001bb87316f07e6c371ad
treeb9cf63688839df5daea4333e38de9c01f7283c57
parente09c59d011a4c91a52f5c2c67b03f13dc9928539
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