dmaengine: pxa_dma: fix initial list move
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 21 Sep 2015 09:06:32 +0000 (11:06 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 25 Sep 2015 01:51:01 +0000 (07:21 +0530)
commitaebf5a67db8dbacbc624b9c652b81f5460b15eff
treeb77ef880a32a30f187da1f0b9d6379cc6af8aadd
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
dmaengine: pxa_dma: fix initial list move

Since the commit to have an allocated list of virtual descriptors was
reverted, the pxa_dma driver is broken, as it assumes the descriptor is
placed on the allocated list upon allocation.

Fix the issue in pxa_dma by making an allocated virtual descriptor a
singleton.

Fixes: 8c8fe97b2b8a ("Revert "dmaengine: virt-dma: don't always free descriptor upon completion"")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pxa_dma.c