1 From 6661c06cfe9c5cc937ed662ed0463bd74e7d098e Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Thu, 17 Nov 2016 16:49:33 +0000
4 Subject: [PATCH] fb: Use struct device for dma_alloc_coherent
7 drivers/video/fbdev/bcm2708_fb.c | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
10 --- a/drivers/video/fbdev/bcm2708_fb.c
11 +++ b/drivers/video/fbdev/bcm2708_fb.c
12 @@ -507,7 +507,7 @@ static long vc_mem_copy(struct bcm2708_f
16 - buf = dma_alloc_coherent(NULL, PAGE_ALIGN(size), &bus_addr,
17 + buf = dma_alloc_coherent(fb->fb.device, PAGE_ALIGN(size), &bus_addr,
20 pr_err("[%s]: failed to dma_alloc_coherent(%d)\n",
21 @@ -531,7 +531,7 @@ static long vc_mem_copy(struct bcm2708_f
25 - dma_free_coherent(NULL, PAGE_ALIGN(size), buf, bus_addr);
26 + dma_free_coherent(fb->fb.device, PAGE_ALIGN(size), buf, bus_addr);