diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/video/fb_defio.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/video/fb_defio.c')
-rw-r--r-- | drivers/video/fb_defio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c index c27ab1ed9604..6113c47e095a 100644 --- a/drivers/video/fb_defio.c +++ b/drivers/video/fb_defio.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/errno.h> | 13 | #include <linux/errno.h> |
14 | #include <linux/string.h> | 14 | #include <linux/string.h> |
15 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
16 | #include <linux/slab.h> | ||
17 | #include <linux/vmalloc.h> | 16 | #include <linux/vmalloc.h> |
18 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
19 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
@@ -71,7 +70,7 @@ int fb_deferred_io_fsync(struct file *file, struct dentry *dentry, int datasync) | |||
71 | { | 70 | { |
72 | struct fb_info *info = file->private_data; | 71 | struct fb_info *info = file->private_data; |
73 | 72 | ||
74 | /* Skip if deferred io is complied-in but disabled on this fbdev */ | 73 | /* Skip if deferred io is compiled-in but disabled on this fbdev */ |
75 | if (!info->fbdefio) | 74 | if (!info->fbdefio) |
76 | return 0; | 75 | return 0; |
77 | 76 | ||
@@ -144,7 +143,9 @@ static const struct address_space_operations fb_deferred_io_aops = { | |||
144 | static int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct *vma) | 143 | static int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct *vma) |
145 | { | 144 | { |
146 | vma->vm_ops = &fb_deferred_io_vm_ops; | 145 | vma->vm_ops = &fb_deferred_io_vm_ops; |
147 | vma->vm_flags |= ( VM_IO | VM_RESERVED | VM_DONTEXPAND ); | 146 | vma->vm_flags |= ( VM_RESERVED | VM_DONTEXPAND ); |
147 | if (!(info->flags & FBINFO_VIRTFB)) | ||
148 | vma->vm_flags |= VM_IO; | ||
148 | vma->vm_private_data = info; | 149 | vma->vm_private_data = info; |
149 | return 0; | 150 | return 0; |
150 | } | 151 | } |