summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-13 11:59:29 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-13 11:59:29 -0300
commite63393d099ee7dc257d46a85611ac301c7cb2f1c (patch)
tree15cdc73fc29a059f601a0f462714d4b4495e27be
parent1578e14b943d0db4c03ad27e229a4df96207226e (diff)
downloadmediapointer-dvb-s2-e63393d099ee7dc257d46a85611ac301c7cb2f1c.tar.gz
mediapointer-dvb-s2-e63393d099ee7dc257d46a85611ac301c7cb2f1c.tar.bz2
videobuf-dma-sg: Remove unused flag
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/videobuf-dma-sg.c4
-rw-r--r--linux/include/media/videobuf-dma-sg.h3
2 files changed, 0 insertions, 7 deletions
diff --git a/linux/drivers/media/video/videobuf-dma-sg.c b/linux/drivers/media/video/videobuf-dma-sg.c
index 47280bf9f..ca1c60451 100644
--- a/linux/drivers/media/video/videobuf-dma-sg.c
+++ b/linux/drivers/media/video/videobuf-dma-sg.c
@@ -163,9 +163,6 @@ static int videobuf_dma_init_user_locked(struct videobuf_dmabuf *dma,
dprintk(1,"init user [0x%lx+0x%lx => %d pages]\n",
data,size,dma->nr_pages);
- dma->varea = (void *) data;
-
-
err = get_user_pages(current,current->mm,
data & PAGE_MASK, dma->nr_pages,
rw == READ, 1, /* force */
@@ -305,7 +302,6 @@ int videobuf_dma_free(struct videobuf_dmabuf *dma)
vfree(dma->vmalloc);
dma->vmalloc = NULL;
- dma->varea = NULL;
if (dma->bus_addr) {
dma->bus_addr = 0;
diff --git a/linux/include/media/videobuf-dma-sg.h b/linux/include/media/videobuf-dma-sg.h
index b6ab08045..be8da269e 100644
--- a/linux/include/media/videobuf-dma-sg.h
+++ b/linux/include/media/videobuf-dma-sg.h
@@ -68,9 +68,6 @@ struct videobuf_dmabuf {
/* for kernel buffers */
void *vmalloc;
- /* Stores the userspace pointer to vmalloc area */
- void *varea;
-
/* for overlay buffers (pci-pci dma) */
dma_addr_t bus_addr;