aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-11-20 22:06:30 +0100
committerThomas White <taw@bitwiz.org.uk>2010-04-13 22:31:47 +0200
commitee53d975c157a9763b6f8637f1c47a3bc0671f77 (patch)
treec50a330055eb091e684d2d189c81a1defde5e3b6
parente49965464471cbbf2b8b5ff0883959961d06a8a6 (diff)
Fix KMS framebuffer physical address
This allows "/dev/fb0" to work correctly with mmap(). Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r--drivers/mfd/glamo/glamo-kms-fb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/glamo/glamo-kms-fb.c b/drivers/mfd/glamo/glamo-kms-fb.c
index 6d4b9ea04bc..04de83bbe41 100644
--- a/drivers/mfd/glamo/glamo-kms-fb.c
+++ b/drivers/mfd/glamo/glamo-kms-fb.c
@@ -387,9 +387,6 @@ int glamofb_create(struct drm_device *dev, uint32_t fb_width,
info->fbops = &glamofb_ops;
info->fix.line_length = fb->pitch;
- info->fix.smem_start = dev->mode_config.fb_base
- + (unsigned long) gdrm->vram->start;
- info->fix.smem_len = size;
info->flags = FBINFO_DEFAULT;
@@ -401,6 +398,8 @@ int glamofb_create(struct drm_device *dev, uint32_t fb_width,
ret = -ENOSPC;
goto out_unref;
}
+ info->fix.smem_start = (unsigned long)gdrm->vram->start + offs;
+ info->fix.smem_len = size;
info->screen_size = size;
info->pseudo_palette = fb->pseudo_palette;