mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 0dad8f4ad7c4b06a4aed86222f661aff474511cf Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Mon, 27 Mar 2023 10:25:25 +0100
|
|
Subject: [PATCH 637/726] rpisense-fb: Add explicit fb_deferred_io_mmap hook
|
|
|
|
As of commit [1], introduced in 5.18, fbdev drivers that use
|
|
deferred IO and need mmap support must include an explicit fb_mmap
|
|
pointer to the fb_deferred_io_mmap.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
|
|
[1] 590558510327 ("fbdev: Put mmap for deferred I/O into drivers")
|
|
---
|
|
drivers/video/fbdev/rpisense-fb.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/drivers/video/fbdev/rpisense-fb.c b/drivers/video/fbdev/rpisense-fb.c
|
|
index ef771f4d2722..674787adb261 100644
|
|
--- a/drivers/video/fbdev/rpisense-fb.c
|
|
+++ b/drivers/video/fbdev/rpisense-fb.c
|
|
@@ -201,6 +201,7 @@ static struct fb_ops rpisense_fb_ops = {
|
|
.fb_copyarea = rpisense_fb_copyarea,
|
|
.fb_imageblit = rpisense_fb_imageblit,
|
|
.fb_ioctl = rpisense_fb_ioctl,
|
|
+ .fb_mmap = fb_deferred_io_mmap,
|
|
};
|
|
|
|
static int rpisense_fb_probe(struct platform_device *pdev)
|
|
--
|
|
2.33.1
|
|
|