Skip to content

Commit

Permalink
drm/gma500: Remove addr_space field from psb_framebuffer
Browse files Browse the repository at this point in the history
The field 'addr_space' in struct psb_framebuffer serves no
purpose. Remove it.

Signed-off-by: Thomas Zimmermann <[email protected]>
Signed-off-by: Patrik Jakobsson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Thomas Zimmermann authored and patjak committed Nov 25, 2019
1 parent 3540af8 commit 641099f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/gma500/framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/gma500/framebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

struct psb_framebuffer {
struct drm_framebuffer base;
struct address_space *addr_space;
struct fb_info *fbdev;
};

Expand Down

0 comments on commit 641099f

Please sign in to comment.