aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/pvr2fb.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-19 21:35:55 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-10-29 06:53:07 -0400
commit31b6780c15a4e3a90fe260e977f5186772ce7afb (patch)
tree9147371d1b0f5b6dbf1806a7af125552a67fbc3b /drivers/video/pvr2fb.c
parentf51a07d05c5142e73f781d878f411d63d3548a49 (diff)
framebuffer: Use fb_<level>
Neaten and shorten the code using the new fb_<level> macros. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/pvr2fb.c')
-rw-r--r--drivers/video/pvr2fb.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/drivers/video/pvr2fb.c b/drivers/video/pvr2fb.c
index df07860563e6..167cffff3d4e 100644
--- a/drivers/video/pvr2fb.c
+++ b/drivers/video/pvr2fb.c
@@ -817,24 +817,25 @@ static int pvr2fb_common_init(void)
817 817
818 rev = fb_readl(par->mmio_base + 0x04); 818 rev = fb_readl(par->mmio_base + 0x04);
819 819
820 printk("fb%d: %s (rev %ld.%ld) frame buffer device, using %ldk/%ldk of video memory\n", 820 fb_info(fb_info, "%s (rev %ld.%ld) frame buffer device, using %ldk/%ldk of video memory\n",
821 fb_info->node, fb_info->fix.id, (rev >> 4) & 0x0f, rev & 0x0f, 821 fb_info->fix.id, (rev >> 4) & 0x0f, rev & 0x0f,
822 modememused >> 10, (unsigned long)(fb_info->fix.smem_len >> 10)); 822 modememused >> 10,
823 printk("fb%d: Mode %dx%d-%d pitch = %ld cable: %s video output: %s\n", 823 (unsigned long)(fb_info->fix.smem_len >> 10));
824 fb_info->node, fb_info->var.xres, fb_info->var.yres, 824 fb_info(fb_info, "Mode %dx%d-%d pitch = %ld cable: %s video output: %s\n",
825 fb_info->var.bits_per_pixel, 825 fb_info->var.xres, fb_info->var.yres,
826 get_line_length(fb_info->var.xres, fb_info->var.bits_per_pixel), 826 fb_info->var.bits_per_pixel,
827 (char *)pvr2_get_param(cables, NULL, cable_type, 3), 827 get_line_length(fb_info->var.xres, fb_info->var.bits_per_pixel),
828 (char *)pvr2_get_param(outputs, NULL, video_output, 3)); 828 (char *)pvr2_get_param(cables, NULL, cable_type, 3),
829 (char *)pvr2_get_param(outputs, NULL, video_output, 3));
829 830
830#ifdef CONFIG_SH_STORE_QUEUES 831#ifdef CONFIG_SH_STORE_QUEUES
831 printk(KERN_NOTICE "fb%d: registering with SQ API\n", fb_info->node); 832 fb_notice(fb_info, "registering with SQ API\n");
832 833
833 pvr2fb_map = sq_remap(fb_info->fix.smem_start, fb_info->fix.smem_len, 834 pvr2fb_map = sq_remap(fb_info->fix.smem_start, fb_info->fix.smem_len,
834 fb_info->fix.id, PAGE_SHARED); 835 fb_info->fix.id, PAGE_SHARED);
835 836
836 printk(KERN_NOTICE "fb%d: Mapped video memory to SQ addr 0x%lx\n", 837 fb_notice(fb_info, "Mapped video memory to SQ addr 0x%lx\n",
837 fb_info->node, pvr2fb_map); 838 pvr2fb_map);
838#endif 839#endif
839 840
840 return 0; 841 return 0;