summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/au1100fb.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-28 21:47:05 +0300
committerChristoph Hellwig <hch@lst.de>2019-06-03 17:00:08 +0300
commit67f30ad19c4b329dbe47e1563b2017203bd02e34 (patch)
treeb877f51888b4544ad1eb7988d9ecadb1ac0ba3d1 /drivers/video/fbdev/au1100fb.h
parente58cfbfb32d1b9bcc8dd5e0c8801c8d518bc51f3 (diff)
downloadlinux-67f30ad19c4b329dbe47e1563b2017203bd02e34.tar.xz
au1100fb: fix DMA API abuse
Virtual addresses return from dma(m)_alloc_coherent are opaque in what backs then, and drivers must not poke into them. Switch the driver to use the generic DMA API mmap helper to avoid these games. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/au1100fb.h')
-rw-r--r--drivers/video/fbdev/au1100fb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/au1100fb.h b/drivers/video/fbdev/au1100fb.h
index 9af19939a9c6..e7239bceefd3 100644
--- a/drivers/video/fbdev/au1100fb.h
+++ b/drivers/video/fbdev/au1100fb.h
@@ -110,6 +110,7 @@ struct au1100fb_device {
dma_addr_t fb_phys;
int panel_idx;
struct clk *lcdclk;
+ struct device *dev;
};
/********************************************************************/