summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-01-14 17:18:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-14 20:42:17 +0100
commit0327e12f068471dc03577407b8f8915914c2be32 (patch)
treeea79bb356126de623a08576bcbf564ddbab4d7cb
parente7d81285c804efa3688b517abafc254c12024116 (diff)
downloadbarebox-0327e12f068471dc03577407b8f8915914c2be32.tar.gz
fb: update cdev map_base
Calling fb_activate_var potentially changes the framebuffer address, so we have to update the fb0 cdev afterwards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/video/fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index aad0e1f..ba34b9c 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -79,6 +79,8 @@ static int fb_setup_mode(struct device_d *dev, struct param_d *param,
ret = info->fbops->fb_activate_var(info);
+ dev->map_base = (unsigned long)info->screen_base;
+
if (ret == 0)
dev_param_set_generic(dev, param, val);