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)
commit49b70a31c166a6da12f60ec85da608c064555406
treee406da7901bc3f0396ee19ae87a8005fb08090f2
parent9ecdb039b7517dc10b8c3e6dbeb40859178ac28e
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