aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2013-04-26 13:47:37 +0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2013-05-06 19:20:20 +0800
commit7a2f3897772715b57d3aa2b535aef5a3ca77da88 (patch)
treee58b870d15903035e2429e76d0c12ba0abecfa95
parent704e420c9100f5ee000336960eab29ebc66470d1 (diff)
fb: hi3620: fix line_length
The line_length shouldn't be aligned with 64. Otherwise, driver gets wrong data on supporting RGB565 format. So remove the align. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
-rw-r--r--drivers/video/hisilicon/hi3620_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/hisilicon/hi3620_fb.c b/drivers/video/hisilicon/hi3620_fb.c
index 670bde4a20a4..b8e1d7b2a94b 100644
--- a/drivers/video/hisilicon/hi3620_fb.c
+++ b/drivers/video/hisilicon/hi3620_fb.c
@@ -483,7 +483,7 @@ static int hi3620_init_mode(struct device_node *np, struct fb_info *fb)
fix->accel = FB_ACCEL_NONE; /* No hardware accelerator */
length = var->xres_virtual * var->bits_per_pixel / 8;
- fb->fix.line_length = ALIGN(length, 64);
+ fb->fix.line_length = length;
fb->fix.smem_len = ALIGN(fb->fix.line_length * fb->var.yres_virtual,
PAGE_SIZE);
hi3620_parse_dt(np, info);