rpisense-fb: Add explicit fb_deferred_io_mmap hook
authorPhil Elwell <phil@raspberrypi.com>
Mon, 27 Mar 2023 09:25:25 +0000 (10:25 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:29 +0000 (11:33 +0000)
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

index 59d77b7..22db39b 100644 (file)
@@ -191,6 +191,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)