mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
dma-mapping: replace dmam_alloc_noncoherent with dmam_alloc_attrs
dmam_alloc_noncoherent is a trivial wrapper around dmam_alloc_attrs, that hardcodes one particular flag. Make the devres code more flexible by allowing the callers to pass arbitrary flags. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
03b643866d
commit
63d36c9550
4 changed files with 23 additions and 25 deletions
|
|
@ -1694,9 +1694,10 @@ static int au1200fb_drv_probe(struct platform_device *dev)
|
|||
/* Allocate the framebuffer to the maximum screen size */
|
||||
fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8;
|
||||
|
||||
fbdev->fb_mem = dmam_alloc_noncoherent(&dev->dev,
|
||||
fbdev->fb_mem = dmam_alloc_attrs(&dev->dev,
|
||||
PAGE_ALIGN(fbdev->fb_len),
|
||||
&fbdev->fb_phys, GFP_KERNEL);
|
||||
&fbdev->fb_phys, GFP_KERNEL,
|
||||
DMA_ATTR_NON_CONSISTENT);
|
||||
if (!fbdev->fb_mem) {
|
||||
print_err("fail to allocate frambuffer (size: %dK))",
|
||||
fbdev->fb_len / 1024);
|
||||
|
|
|
|||
Loading…
Reference in a new issue