9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2011-01-14 17:18:17 +01:00
parent e7d81285c8
commit 0327e12f06
1 changed files with 2 additions and 0 deletions

View File

@ -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);