1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Fix RPI5 support

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-11-17 17:31:36 +01:00
parent 57beb2ec60
commit 3743692973
1017 changed files with 232368 additions and 4124 deletions

View file

@ -0,0 +1,43 @@
From 71ec21e24e314f12e0c2488d7a3d6344bada7526 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Thu, 1 Sep 2022 17:51:54 +0100
Subject: [PATCH] bcm2708_fb: Fix more build warnings
---
drivers/video/fbdev/bcm2708_fb.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- a/drivers/video/fbdev/bcm2708_fb.c
+++ b/drivers/video/fbdev/bcm2708_fb.c
@@ -955,6 +955,7 @@ static void bcm2708_fb_imageblit(struct
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(in
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 platf
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;