drm: use drm_driver_legacy_fb_format in drm_gem_fbdev_fb_create
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 21 Sep 2018 13:47:00 +0000 (15:47 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Sep 2018 12:49:49 +0000 (14:49 +0200)
commit184bef8924c95d43c1476d21034c14c8582f487f
tree5fad617c212251863eea5dfe237314b11339aba1
parent059b5eb5d9554dea689430ad3872dcb37a35053d
drm: use drm_driver_legacy_fb_format in drm_gem_fbdev_fb_create

Creating framebuffers for fbdev emulation should use the correct format
code too, so switch drm_gem_fbdev_fb_create() over to use the new
drm_driver_legacy_fb_format() function.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180921134704.12826-3-kraxel@redhat.com
drivers/gpu/drm/drm_gem_framebuffer_helper.c