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:
parent
e7d81285c8
commit
0327e12f06
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue