video: tegra: dtv: don't unmap dma buffers
Mallikarjun Kasoju [Thu, 31 Oct 2013 12:05:02 +0000 (17:05 +0530)]
don't unmap dma buffers in remove.

Bug 1393024

Change-Id: I146818ae52223abed152c11f8fba22c5c48803fc
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/310068
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

drivers/media/platform/tegra/tegra_dtv.c

index 54a9c9e..889353b 100644 (file)
@@ -44,7 +44,7 @@
 #include <media/tegra_dtv.h>
 
 #include <linux/uaccess.h>
-#include <mach/iomap.h>
+#include "../../../../arch/arm/mach-tegra/iomap.h"
 #include <linux/dmaengine.h>
 #include <mach/dtv.h>
 
@@ -916,10 +916,6 @@ static void tear_down_dma(struct tegra_dtv_context *dtv_ctx)
        if (dtv_ctx->stream.dma_chan) {
                for (i = 0; i < dtv_ctx->stream.num_bufs; i++) {
                        buf = &stream->bufs[i];
-                       dma_unmap_single(dev,
-                                        buf->data_phy,
-                                        stream->buf_size,
-                                        DMA_FROM_DEVICE);
                        buf->data_phy = 0;
                }
                dma_release_channel(stream->dma_chan);