aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmem.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 12:35:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 12:35:27 -0400
commit8127b39e700f965a60fca443d23f3e171bf7c3a9 (patch)
tree435e3e4b640cb6e0c2428d2d84bfde39304be5ed /drivers/video/fbmem.c
parent96a3e8af5a54c324535472ca946215d5bafe6539 (diff)
parent9bf9d47a29afbf7a43eae74a988a4aefe88ccbfd (diff)
Merge tag 'fbdev-for-3.10' of git://gitorious.org/linux-omap-dss2/linux
Pull fbdev updates from Tomi Valkeinen: - use vm_iomap_memory() in various fb drivers to map the fb memory to userspace - Cleanups for the videomode and display_timing features - Updates to vt8500, wm8505 and auo-k190x fb drivers * tag 'fbdev-for-3.10' of git://gitorious.org/linux-omap-dss2/linux: (36 commits) fbdev: fix check for fb_mmap's mmio availability fbdev: improve fb_mmap bounds checks fbdev/ps3fb: use vm_iomap_memory() fbdev/sgivwfb: use vm_iomap_memory() fbdev/vermillion: use vm_iomap_memory() fbdev/sa1100fb: use vm_iomap_memory() fbdev/fb-puv3: use vm_iomap_memory() fbdev/controlfb: use vm_iomap_memory() fbdev/omapfb: use vm_iomap_memory() video: vt8500: fix Kconfig for videomode video/s3c: move platform_data out of arch/arm video/exynos: remove unnecessary header inclusions drivers/video: fsl-diu-fb: add hardware cursor support drivers: video: use module_platform_driver_probe() ARM: OMAP: remove "config FB_OMAP_CONSISTENT_DMA_SIZE" video: wm8505fb: Convert to devm_ioremap_resource() AUO-K190x: Add resolutions for portrait displays AUO-K190x: add framebuffer rotation support AUO-K190x: add a 16bit truecolor mode AUO-K190x: make color handling more flexible ...
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r--drivers/video/fbmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 86291dcd964a..dcb669eb4532 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1398,6 +1398,11 @@ fb_mmap(struct file *file, struct vm_area_struct * vma)
1398 len = info->fix.smem_len; 1398 len = info->fix.smem_len;
1399 mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT; 1399 mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT;
1400 if (vma->vm_pgoff >= mmio_pgoff) { 1400 if (vma->vm_pgoff >= mmio_pgoff) {
1401 if (info->var.accel_flags) {
1402 mutex_unlock(&info->mm_lock);
1403 return -EINVAL;
1404 }
1405
1401 vma->vm_pgoff -= mmio_pgoff; 1406 vma->vm_pgoff -= mmio_pgoff;
1402 start = info->fix.mmio_start; 1407 start = info->fix.mmio_start;
1403 len = info->fix.mmio_len; 1408 len = info->fix.mmio_len;