|
@@ -106,7 +106,7 @@ static int rockchip_drm_fbdev_create(struct drm_fb_helper *helper,
|
|
|
|
|
|
fb = helper->fb;
|
|
|
drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
|
|
|
- drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);
|
|
|
+ drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height);
|
|
|
|
|
|
offset = fbi->var.xoffset * bytes_per_pixel;
|
|
|
offset += fbi->var.yoffset * fb->pitches[0];
|