summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip
diff options
context:
space:
mode:
authorRob Clark2015-03-11 15:23:12 +0100
committerDaniel Vetter2015-03-11 22:08:25 +0100
commitd3c8ea3460fa9ca8a19eea8813071dee0b07c293 (patch)
treee0a2b2a0d38c2486aa1dbac10370223d691bb9e8 /drivers/gpu/drm/rockchip
parentdrm/exynos: use correct fb width/height (diff)
downloadkernel-qcow2-linux-d3c8ea3460fa9ca8a19eea8813071dee0b07c293.tar.gz
kernel-qcow2-linux-d3c8ea3460fa9ca8a19eea8813071dee0b07c293.tar.xz
kernel-qcow2-linux-d3c8ea3460fa9ca8a19eea8813071dee0b07c293.zip
drm/rockchip: use correct fb width/height
What is passed to drm_fb_helper_fill_var() should be fb_width/fb_height, rather than the surface size. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
index a5d889a8716b..ff04877e837c 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
@@ -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];