summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2022-12-19 19:05:07 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2023-01-13 14:54:27 +0300
commite12fa3544469b761ba72b070190d272e2a644e54 (patch)
tree385e9496c4b3b415a952236d387f102040e81731 /samples
parent81d2393485f0990cf6566b0c9e0697c199f68ae5 (diff)
downloadlinux-e12fa3544469b761ba72b070190d272e2a644e54.tar.xz
vfio-mdev/mdpy-fb: Do not set struct fb_info.apertures
Generic fbdev drivers use the apertures field in struct fb_info to control ownership of the framebuffer memory and graphics device. Do not set the values in mdpy-fb. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221219160516.23436-10-tzimmermann@suse.de
Diffstat (limited to 'samples')
-rw-r--r--samples/vfio-mdev/mdpy-fb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/samples/vfio-mdev/mdpy-fb.c b/samples/vfio-mdev/mdpy-fb.c
index 9ec93d90e8a5..1de5801cd2e8 100644
--- a/samples/vfio-mdev/mdpy-fb.c
+++ b/samples/vfio-mdev/mdpy-fb.c
@@ -161,14 +161,6 @@ static int mdpy_fb_probe(struct pci_dev *pdev,
goto err_release_fb;
}
- info->apertures = alloc_apertures(1);
- if (!info->apertures) {
- ret = -ENOMEM;
- goto err_unmap;
- }
- info->apertures->ranges[0].base = info->fix.smem_start;
- info->apertures->ranges[0].size = info->fix.smem_len;
-
info->fbops = &mdpy_fb_ops;
info->flags = FBINFO_DEFAULT;
info->pseudo_palette = par->palette;