From: Wei Yongjun Date: Mon, 23 Sep 2013 06:07:20 +0000 (+0800) Subject: dma: mmp_pdma: use list_move instead of list_del/list_add X-Git-Tag: upstream/snapshot3+hdmi~3918^2~20^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f358c289eec6dc3953706363e4515c800cec1d13;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dma: mmp_pdma: use list_move instead of list_del/list_add Using list_move() instead of list_del() + list_add(). Signed-off-by: Wei Yongjun Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ff8d7827..558994f 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c @@ -798,8 +798,7 @@ static void dma_do_tasklet(unsigned long data) * move the descriptors to a temporary list so we can drop * the lock during the entire cleanup operation */ - list_del(&desc->node); - list_add(&desc->node, &chain_cleanup); + list_move(&desc->node, &chain_cleanup); /* * Look for the first list entry which has the ENDIRQEN flag