dmaengine: remove DMA unmap flags
[linux-2.6-block.git] / drivers / dma / dmatest.c
index 92f796cdc6ab1dc12c6b895fb2d6e16e5dd92264..5791091c13ca36f8e40b406d232808c618328c13 100644 (file)
@@ -597,11 +597,9 @@ static int dmatest_func(void *data)
        set_user_nice(current, 10);
 
        /*
-        * src buffers are freed by the DMAEngine code with dma_unmap_single()
-        * dst buffers are freed by ourselves below
+        * src and dst buffers are freed by ourselves below
         */
-       flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT
-             | DMA_COMPL_SKIP_DEST_UNMAP | DMA_COMPL_SRC_UNMAP_SINGLE;
+       flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT;
 
        while (!kthread_should_stop()
               && !(params->iterations && total_tests >= params->iterations)) {
@@ -750,7 +748,8 @@ static int dmatest_func(void *data)
                        continue;
                }
 
-               /* Unmap by myself (see DMA_COMPL_SKIP_DEST_UNMAP above) */
+               /* Unmap by myself */
+               unmap_src(dev->dev, dma_srcs, len, src_cnt);
                unmap_dst(dev->dev, dma_dsts, params->buf_size, dst_cnt);
 
                error_count = 0;