summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-11-27 16:15:34 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2023-11-29 14:20:13 +0300
commit30b72c0bde93ae3001736b596cf94bfb47c5e159 (patch)
treeaf2b3a52af40dc3a8f35b207ee0219f226dce5ee
parent853767b6b94630ac6388aa8e7893d3df26be53be (diff)
downloadlinux-30b72c0bde93ae3001736b596cf94bfb47c5e159.tar.xz
fbdev/arcfb: Set FBINFO_VIRTFB flag
The arcfb driver operates on system memory. Mark the framebuffer accordingly. Helpers operating on the framebuffer memory will test for the presence of this flag. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: Jaya Kumar <jayalk@intworks.biz> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-6-tzimmermann@suse.de
-rw-r--r--drivers/video/fbdev/arcfb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c
index cff11cb04a55..7344e825543a 100644
--- a/drivers/video/fbdev/arcfb.c
+++ b/drivers/video/fbdev/arcfb.c
@@ -529,6 +529,7 @@ static int arcfb_probe(struct platform_device *dev)
if (!info)
goto err_fb_alloc;
+ info->flags |= FBINFO_VIRTFB;
info->screen_buffer = videomemory;
info->fbops = &arcfb_ops;