aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/plat-omap/include/mach/omapfb.h4
-rw-r--r--drivers/video/omap/omapfb_main.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/include/mach/omapfb.h b/arch/arm/plat-omap/include/mach/omapfb.h
index 7b74d1255e0b..b226bdf45739 100644
--- a/arch/arm/plat-omap/include/mach/omapfb.h
+++ b/arch/arm/plat-omap/include/mach/omapfb.h
@@ -276,8 +276,8 @@ typedef int (*omapfb_notifier_callback_t)(struct notifier_block *,
276 void *fbi); 276 void *fbi);
277 277
278struct omapfb_mem_region { 278struct omapfb_mem_region {
279 dma_addr_t paddr; 279 u32 paddr;
280 void *vaddr; 280 void __iomem *vaddr;
281 unsigned long size; 281 unsigned long size;
282 u8 type; /* OMAPFB_PLANE_MEM_* */ 282 u8 type; /* OMAPFB_PLANE_MEM_* */
283 unsigned alloc:1; /* allocated by the driver */ 283 unsigned alloc:1; /* allocated by the driver */
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
index 7eab0f0b4ccf..125e605b8c68 100644
--- a/drivers/video/omap/omapfb_main.c
+++ b/drivers/video/omap/omapfb_main.c
@@ -564,7 +564,6 @@ static int set_fb_var(struct fb_info *fbi,
564 var->xoffset = var->xres_virtual - var->xres; 564 var->xoffset = var->xres_virtual - var->xres;
565 if (var->yres + var->yoffset > var->yres_virtual) 565 if (var->yres + var->yoffset > var->yres_virtual)
566 var->yoffset = var->yres_virtual - var->yres; 566 var->yoffset = var->yres_virtual - var->yres;
567 line_size = var->xres * bpp / 8;
568 567
569 if (plane->color_mode == OMAPFB_COLOR_RGB444) { 568 if (plane->color_mode == OMAPFB_COLOR_RGB444) {
570 var->red.offset = 8; var->red.length = 4; 569 var->red.offset = 8; var->red.length = 4;
@@ -1723,8 +1722,8 @@ static int omapfb_do_probe(struct platform_device *pdev,
1723 1722
1724 pr_info("omapfb: configured for panel %s\n", fbdev->panel->name); 1723 pr_info("omapfb: configured for panel %s\n", fbdev->panel->name);
1725 1724
1726 def_vxres = def_vxres ? : fbdev->panel->x_res; 1725 def_vxres = def_vxres ? def_vxres : fbdev->panel->x_res;
1727 def_vyres = def_vyres ? : fbdev->panel->y_res; 1726 def_vyres = def_vyres ? def_vyres : fbdev->panel->y_res;
1728 1727
1729 init_state++; 1728 init_state++;
1730 1729