]> git.baikalelectronics.ru Git - kernel.git/commit
bochs: fix bochsdrmfb mmap
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Nov 2014 11:28:11 +0000 (12:28 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Nov 2014 01:27:09 +0000 (11:27 +1000)
commit9534363c39f3e0331f3ea4c2daef2cc062f3cc75
treee406da7901bc3f0396ee19ae87a8005fb08090f2
parent157caa5abfcfb710b66179e8e077682b6cea49dc
bochs: fix bochsdrmfb mmap

Remove the mapping offset from the bo backing the fbdev framebuffer.
Wire up fbdev mmap function to map the backing bo using ttm_fbdev_mmap.
With that patch in place mmap(/dev/fb0) works as expected.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/bochs/bochs_fbdev.c