Commit 641099fe authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Patrik Jakobsson

drm/gma500: Remove addr_space field from psb_framebuffer

The field 'addr_space' in struct psb_framebuffer serves no
purpose. Remove it.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191122100545.16812-2-tzimmermann@suse.de
parent 3540af8f
...@@ -153,8 +153,6 @@ static int psbfb_mmap(struct fb_info *info, struct vm_area_struct *vma) ...@@ -153,8 +153,6 @@ static int psbfb_mmap(struct fb_info *info, struct vm_area_struct *vma)
if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
return -EINVAL; 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 * If this is a GEM object then info->screen_base is the virtual
* kernel remapping of the object. FIXME: Review if this is * kernel remapping of the object. FIXME: Review if this is
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
struct psb_framebuffer { struct psb_framebuffer {
struct drm_framebuffer base; struct drm_framebuffer base;
struct address_space *addr_space;
struct fb_info *fbdev; struct fb_info *fbdev;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment