1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.6/target/linux/bcm27xx/patches-6.6/0524-bcm2708_fb-Fix-more-build-warnings.patch
Ycarus (Yannick Chabanois) 12de1d2995 Add RPI kernel 6.6 support
2024-04-05 20:55:33 +02:00

48 lines
1.3 KiB
Diff

From 043352299cae2ad1963b95138a9753ca5de801a2 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Thu, 1 Sep 2022 17:51:54 +0100
Subject: [PATCH 0524/1002] bcm2708_fb: Fix more build warnings
---
drivers/video/fbdev/bcm2708_fb.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/video/fbdev/bcm2708_fb.c b/drivers/video/fbdev/bcm2708_fb.c
index 135260ccf240..2cebb5a0847a 100644
--- a/drivers/video/fbdev/bcm2708_fb.c
+++ b/drivers/video/fbdev/bcm2708_fb.c
@@ -955,6 +955,7 @@ static void bcm2708_fb_imageblit(struct fb_info *info,
cfb_imageblit(info, image);
}
+#if 0
static irqreturn_t bcm2708_fb_dma_irq(int irq, void *cxt)
{
struct bcm2708_fb_dev *fbdev = cxt;
@@ -972,6 +973,7 @@ static irqreturn_t bcm2708_fb_dma_irq(int irq, void *cxt)
wake_up(&fbdev->dma_waitq);
return IRQ_HANDLED;
}
+#endif
static struct fb_ops bcm2708_fb_ops = {
.owner = THIS_MODULE,
@@ -1195,12 +1197,12 @@ static int bcm2708_fb_probe(struct platform_device *dev)
return ret;
}
-free_dma_chan:
+//free_dma_chan:
bcm_dma_chan_free(fbdev->dma_chan);
-free_cb:
+//free_cb:
dma_free_wc(&dev->dev, SZ_64K, fbdev->cb_base,
fbdev->cb_handle);
-free_fb:
+//free_fb:
dev_err(&dev->dev, "probe failed, err %d\n", ret);
return ret;
--
2.44.0