[PATCH] fb: update cdev map_base
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 14 14:48:44 EST 2011
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 at pengutronix.de>
---
drivers/video/fb.c | 2 ++
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);
--
1.7.2.3
More information about the barebox
mailing list