diff options
Diffstat (limited to 'drivers/video/pxafb.c')
-rw-r--r-- | drivers/video/pxafb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index 295ff4e1955e..5cc1b8073726 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -624,8 +624,8 @@ static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal, | |||
624 | dma_desc->fdadr = fbi->dma_buff_phys + dma_desc_off; | 624 | dma_desc->fdadr = fbi->dma_buff_phys + dma_desc_off; |
625 | fbi->fdadr[dma] = fbi->dma_buff_phys + dma_desc_off; | 625 | fbi->fdadr[dma] = fbi->dma_buff_phys + dma_desc_off; |
626 | } else { | 626 | } else { |
627 | pal_desc = &fbi->dma_buff->pal_desc[dma]; | 627 | pal_desc = &fbi->dma_buff->pal_desc[pal]; |
628 | pal_desc_off = offsetof(struct pxafb_dma_buff, dma_desc[pal]); | 628 | pal_desc_off = offsetof(struct pxafb_dma_buff, pal_desc[pal]); |
629 | 629 | ||
630 | pal_desc->fsadr = fbi->dma_buff_phys + pal * PALETTE_SIZE; | 630 | pal_desc->fsadr = fbi->dma_buff_phys + pal * PALETTE_SIZE; |
631 | pal_desc->fidr = 0; | 631 | pal_desc->fidr = 0; |
@@ -1334,6 +1334,8 @@ static int __init pxafb_map_video_memory(struct pxafb_info *fbi) | |||
1334 | fbi->dma_buff_phys = fbi->map_dma; | 1334 | fbi->dma_buff_phys = fbi->map_dma; |
1335 | fbi->palette_cpu = (u16 *) fbi->dma_buff->palette; | 1335 | fbi->palette_cpu = (u16 *) fbi->dma_buff->palette; |
1336 | 1336 | ||
1337 | pr_debug("pxafb: palette_mem_size = 0x%08lx\n", fbi->palette_size*sizeof(u16)); | ||
1338 | |||
1337 | #ifdef CONFIG_FB_PXA_SMARTPANEL | 1339 | #ifdef CONFIG_FB_PXA_SMARTPANEL |
1338 | fbi->smart_cmds = (uint16_t *) fbi->dma_buff->cmd_buff; | 1340 | fbi->smart_cmds = (uint16_t *) fbi->dma_buff->cmd_buff; |
1339 | fbi->n_smart_cmds = 0; | 1341 | fbi->n_smart_cmds = 0; |
@@ -1409,7 +1411,6 @@ static struct pxafb_info * __init pxafb_init_fbinfo(struct device *dev) | |||
1409 | struct pxafb_info *fbi; | 1411 | struct pxafb_info *fbi; |
1410 | void *addr; | 1412 | void *addr; |
1411 | struct pxafb_mach_info *inf = dev->platform_data; | 1413 | struct pxafb_mach_info *inf = dev->platform_data; |
1412 | struct pxafb_mode_info *mode = inf->modes; | ||
1413 | 1414 | ||
1414 | /* Alloc the pxafb_info and pseudo_palette in one step */ | 1415 | /* Alloc the pxafb_info and pseudo_palette in one step */ |
1415 | fbi = kmalloc(sizeof(struct pxafb_info) + sizeof(u32) * 16, GFP_KERNEL); | 1416 | fbi = kmalloc(sizeof(struct pxafb_info) + sizeof(u32) * 16, GFP_KERNEL); |