summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/au1200fb.c
diff options
context:
space:
mode:
authorCai Huoqing <caihuoqing@baidu.com>2021-08-12 22:03:32 +0800
committerHelge Deller <deller@gmx.de>2022-01-29 22:24:25 +0100
commit212efde8818e3e7deb57f2e71201449a9c392f36 (patch)
treec2f04bc3e200b99c01e2fafcbf926b9ef25ccba4 /drivers/video/fbdev/au1200fb.c
parent3e17314c22eaec164d2b01b7c41466054df64cb3 (diff)
downloadlinux-212efde8818e3e7deb57f2e71201449a9c392f36.tar.gz
video: fbdev: au1200fb: Make use of dma_mmap_coherent()
replace dma_mmap_attrs() with dma_mmap_coherent() kindly. BTW, fix indentation. Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/au1200fb.c')
-rw-r--r--drivers/video/fbdev/au1200fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/au1200fb.c b/drivers/video/fbdev/au1200fb.c
index c00e01a17368..81c315454428 100644
--- a/drivers/video/fbdev/au1200fb.c
+++ b/drivers/video/fbdev/au1200fb.c
@@ -1233,8 +1233,8 @@ static int au1200fb_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
{
struct au1200fb_device *fbdev = info->par;
- return dma_mmap_attrs(fbdev->dev, vma, fbdev->fb_mem, fbdev->fb_phys,
- fbdev->fb_len, 0);
+ return dma_mmap_coherent(fbdev->dev, vma,
+ fbdev->fb_mem, fbdev->fb_phys, fbdev->fb_len);
}
static void set_global(u_int cmd, struct au1200_lcd_global_regs_t *pdata)