video: fbdev: au1200fb: Make use of dma_mmap_coherent()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 12 Aug 2021 14:03:32 +0000 (22:03 +0800)
committerHelge Deller <deller@gmx.de>
Sat, 29 Jan 2022 21:24:25 +0000 (22:24 +0100)
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>
drivers/video/fbdev/au1200fb.c

index c00e01a..81c3154 100644 (file)
@@ -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)