diff mbox

cirrus: initialize smem_start and smem_size fields in fb info

Message ID 1377746647-8996-1-git-send-email-dbehr@chromium.org (mailing list archive)
State New, archived
Headers show

Commit Message

Dominik Behr Aug. 29, 2013, 3:24 a.m. UTC
so user space drivers like fbdev can map the memory

Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
---
 drivers/gpu/drm/cirrus/cirrus_fbdev.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
index 6c6b4c8..39e7971 100644
--- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c
+++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
@@ -198,6 +198,9 @@  static int cirrusfb_create(struct cirrus_fbdev *gfbdev,
 	info->screen_base = sysram;
 	info->screen_size = size;
 
+	info->fix.smem_start = cdev->dev->mode_config.fb_base;
+	info->fix.smem_len = size;
+
 	info->fix.mmio_start = 0;
 	info->fix.mmio_len = 0;