drm/gma500: Remove addr_space field from psb_framebuffer
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 22 Nov 2019 10:05:40 +0000 (11:05 +0100)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Mon, 25 Nov 2019 10:01:23 +0000 (11:01 +0100)
The field 'addr_space' in struct psb_framebuffer serves no
purpose. Remove it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191122100545.16812-2-tzimmermann@suse.de
drivers/gpu/drm/gma500/framebuffer.c
drivers/gpu/drm/gma500/framebuffer.h

index 90237abee0885e5247322b9c46d5b1cccee78b0f..2991faae7ac4cbe9dd46140abb729b1b9e1bef68 100644 (file)
@@ -153,8 +153,6 @@ static int psbfb_mmap(struct fb_info *info, struct vm_area_struct *vma)
        if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
                return -EINVAL;
 
-       if (!psbfb->addr_space)
-               psbfb->addr_space = vma->vm_file->f_mapping;
        /*
         * If this is a GEM object then info->screen_base is the virtual
         * kernel remapping of the object. FIXME: Review if this is
index ae8a02639fd99a1ac8cbcda623c2a0988d3f7d44..a2d68dd74c12828514b2c261bbf73b27425935a0 100644 (file)
@@ -15,7 +15,6 @@
 
 struct psb_framebuffer {
        struct drm_framebuffer base;
-       struct address_space *addr_space;
        struct fb_info *fbdev;
 };