drm/ast: Initialized data needed to map fbdev memory
authorEgbert Eich <eich@suse.de>
Wed, 11 Jun 2014 12:59:55 +0000 (14:59 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Nov 2015 02:27:31 +0000 (12:27 +1000)
commit28fb4cb7fa6f63dc2fbdb5f2564dcbead8e3eee0
tree178c61d4b4f2fa3a56af57163a979d11c65d691b
parent2565df91a2a834046024a9baed479dc97dcfc712
drm/ast: Initialized data needed to map fbdev memory

Due to a missing initialization there was no way to map fbdev memory.
Thus for example using the Xserver with the fbdev driver failed.
This fix adds initialization for fix.smem_start and fix.smem_len
in the fb_info structure, which fixes this problem.

Requested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: stable@vger.kernel.org
Signed-off-by: Egbert Eich <eich@suse.de>
[pulled from SuSE tree by me - airlied]
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_fb.c
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_mode.c