]> git.baikalelectronics.ru Git - kernel.git/commit
drm/kms: allocate framebuffer cmap
authorClemens Ladisch <clemens@ladisch.de>
Wed, 4 Nov 2009 08:43:00 +0000 (09:43 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Nov 2009 03:02:53 +0000 (13:02 +1000)
commite12f9428a81c4570c7e9ec1a480fd9baa9ca2909
tree89a510111ceac1d2de0b3de2149df867381767e4
parentc38de664db2ab8149789f8b75d53c5e87ecd6c30
drm/kms: allocate framebuffer cmap

Without an allocated colormap, FBIOGETCMAP fails.  This would make
programs restore an all-black colormap ("links -g") or fail to work
altogether ("mplayer -vo fbdev2").

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c