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)
commit3bea21b64c0e3f380814de990ef57ff1f08dbf95
tree89a510111ceac1d2de0b3de2149df867381767e4
parent7a654158bdf9dc318fd451fbf606ed100d6ba25f
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