Commit ecbfc474 authored by Daniel Vetter's avatar Daniel Vetter

drm/fb_helper: set info->par in fill_info()

The fbdev emulation helpers pretty much assume that this is set.
Let's do it for everyone.
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190326132008.11781-3-daniel.vetter@ffwll.ch
parent f1eca684
...@@ -2128,6 +2128,7 @@ void drm_fb_helper_fill_info(struct fb_info *info, ...@@ -2128,6 +2128,7 @@ void drm_fb_helper_fill_info(struct fb_info *info,
drm_fb_helper_fill_var(info, fb_helper, drm_fb_helper_fill_var(info, fb_helper,
sizes->fb_width, sizes->fb_height); sizes->fb_width, sizes->fb_height);
info->par = fb_helper;
snprintf(info->fix.id, sizeof(info->fix.id), "%sdrmfb", snprintf(info->fix.id, sizeof(info->fix.id), "%sdrmfb",
fb_helper->dev->driver->name); fb_helper->dev->driver->name);
...@@ -3181,7 +3182,6 @@ int drm_fb_helper_generic_probe(struct drm_fb_helper *fb_helper, ...@@ -3181,7 +3182,6 @@ int drm_fb_helper_generic_probe(struct drm_fb_helper *fb_helper,
if (IS_ERR(fbi)) if (IS_ERR(fbi))
return PTR_ERR(fbi); return PTR_ERR(fbi);
fbi->par = fb_helper;
fbi->fbops = &drm_fbdev_fb_ops; fbi->fbops = &drm_fbdev_fb_ops;
fbi->screen_size = fb->height * fb->pitches[0]; fbi->screen_size = fb->height * fb->pitches[0];
fbi->fix.smem_len = fbi->screen_size; fbi->fix.smem_len = fbi->screen_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment