brcm2708: rename target to bcm27xx
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-4.19 / 950-0288-video-bcm2708_fb-Fix-warnings-on-64-bit-builds.patch
1 From ca128febc6abc040d747ddc0808fd203c135668e Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Fri, 25 Jan 2019 17:11:39 +0000
4 Subject: [PATCH] video: bcm2708_fb: Fix warnings on 64 bit builds
5
6 Fix up logging lines where the wrong format specifiers were
7 being used.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
10 ---
11 drivers/video/fbdev/bcm2708_fb.c | 10 ++++------
12 1 file changed, 4 insertions(+), 6 deletions(-)
13
14 --- a/drivers/video/fbdev/bcm2708_fb.c
15 +++ b/drivers/video/fbdev/bcm2708_fb.c
16 @@ -513,8 +513,8 @@ static long vc_mem_copy(struct bcm2708_f
17 buf = dma_alloc_coherent(fb->fb.device, PAGE_ALIGN(size), &bus_addr,
18 GFP_ATOMIC);
19 if (!buf) {
20 - pr_err("[%s]: failed to dma_alloc_coherent(%d)\n",
21 - __func__, size);
22 + pr_err("[%s]: failed to dma_alloc_coherent(%zd)\n", __func__,
23 + size);
24 rc = -ENOMEM;
25 goto out;
26 }
27 @@ -910,8 +910,7 @@ static int bcm2708_fb_probe(struct platf
28 goto free_fb;
29 }
30
31 - pr_info("BCM2708FB: allocated DMA memory %08x\n",
32 - fb->cb_handle);
33 + pr_info("BCM2708FB: allocated DMA memory %pad\n", &fb->cb_handle);
34
35 ret = bcm_dma_chan_alloc(BCM_DMA_FEATURE_BULK,
36 &fb->dma_chan_base, &fb->dma_irq);
37 @@ -929,8 +928,7 @@ static int bcm2708_fb_probe(struct platf
38 }
39
40
41 - pr_info("BCM2708FB: allocated DMA channel %d @ %p\n",
42 - fb->dma_chan, fb->dma_chan_base);
43 + pr_info("BCM2708FB: allocated DMA channel %d\n", fb->dma_chan);
44
45 fb->dev = dev;
46 fb->fb.device = &dev->dev;