aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
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
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')
-rw-r--r--drivers/video/68328fb.c9
-rw-r--r--drivers/video/amifb.c4
-rw-r--r--drivers/video/arcfb.c8
-rw-r--r--drivers/video/arkfb.c46
-rw-r--r--drivers/video/asiliantfb.c4
-rw-r--r--drivers/video/atafb.c7
-rw-r--r--drivers/video/aty/aty128fb.c4
-rw-r--r--drivers/video/broadsheetfb.c5
-rw-r--r--drivers/video/carminefb.c3
-rw-r--r--drivers/video/cobalt_lcdfb.c3
-rw-r--r--drivers/video/controlfb.c4
-rw-r--r--drivers/video/efifb.c3
-rw-r--r--drivers/video/fb-puv3.c5
-rw-r--r--drivers/video/fm2fb.c2
-rw-r--r--drivers/video/gbefb.c6
-rw-r--r--drivers/video/geode/gx1fb_core.c2
-rw-r--r--drivers/video/geode/gxfb_core.c2
-rw-r--r--drivers/video/geode/lxfb_core.c3
-rw-r--r--drivers/video/gxt4500.c3
-rw-r--r--drivers/video/hecubafb.c5
-rw-r--r--drivers/video/hgafb.c3
-rw-r--r--drivers/video/hitfb.c3
-rw-r--r--drivers/video/hpfb.c3
-rw-r--r--drivers/video/i740fb.c8
-rw-r--r--drivers/video/igafb.c5
-rw-r--r--drivers/video/imsttfb.c4
-rw-r--r--drivers/video/kyro/fbdev.c8
-rw-r--r--drivers/video/macfb.c3
-rw-r--r--drivers/video/matrox/matroxfb_base.c6
-rw-r--r--drivers/video/mbx/mbxfb.c2
-rw-r--r--drivers/video/neofb.c3
-rw-r--r--drivers/video/nuc900fb.c3
-rw-r--r--drivers/video/offb.c3
-rw-r--r--drivers/video/platinumfb.c2
-rw-r--r--drivers/video/pm2fb.c4
-rw-r--r--drivers/video/pm3fb.c3
-rw-r--r--drivers/video/pmag-ba-fb.c4
-rw-r--r--drivers/video/pmagb-b-fb.c9
-rw-r--r--drivers/video/pvr2fb.c25
-rw-r--r--drivers/video/q40fb.c3
-rw-r--r--drivers/video/s1d13xxxfb.c3
-rw-r--r--drivers/video/s3fb.c62
-rw-r--r--drivers/video/sgivwfb.c4
-rw-r--r--drivers/video/sis/sis_main.c4
-rw-r--r--drivers/video/skeletonfb.c3
-rw-r--r--drivers/video/sstfb.c8
-rw-r--r--drivers/video/stifb.c4
-rw-r--r--drivers/video/svgalib.c4
-rw-r--r--drivers/video/tgafb.c4
-rw-r--r--drivers/video/tmiofb.c3
-rw-r--r--drivers/video/uvesafb.c6
-rw-r--r--drivers/video/valkyriefb.c2
-rw-r--r--drivers/video/vesafb.c3
-rw-r--r--drivers/video/vfb.c5
-rw-r--r--drivers/video/vga16fb.c3
-rw-r--r--drivers/video/vt8623fb.c40
-rw-r--r--drivers/video/w100fb.c5
-rw-r--r--drivers/video/wm8505fb.c12
58 files changed, 185 insertions, 222 deletions
diff --git a/drivers/video/68328fb.c b/drivers/video/68328fb.c
index fa44fbed397d..552258c8f99d 100644
--- a/drivers/video/68328fb.c
+++ b/drivers/video/68328fb.c
@@ -478,11 +478,10 @@ int __init mc68x328fb_init(void)
478 return -EINVAL; 478 return -EINVAL;
479 } 479 }
480 480
481 printk(KERN_INFO 481 fb_info(&fb_info, "%s frame buffer device\n", fb_info.fix.id);
482 "fb%d: %s frame buffer device\n", fb_info.node, fb_info.fix.id); 482 fb_info(&fb_info, "%dx%dx%d at 0x%08lx\n",
483 printk(KERN_INFO 483 mc68x328fb_default.xres_virtual,
484 "fb%d: %dx%dx%d at 0x%08lx\n", fb_info.node, 484 mc68x328fb_default.yres_virtual,
485 mc68x328fb_default.xres_virtual, mc68x328fb_default.yres_virtual,
486 1 << mc68x328fb_default.bits_per_pixel, videomemory); 485 1 << mc68x328fb_default.bits_per_pixel, videomemory);
487 486
488 return 0; 487 return 0;
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c
index 8ab304d1c855..0dac36ce09d6 100644
--- a/drivers/video/amifb.c
+++ b/drivers/video/amifb.c
@@ -3742,8 +3742,8 @@ default_chipset:
3742 if (err) 3742 if (err)
3743 goto unset_drvdata; 3743 goto unset_drvdata;
3744 3744
3745 printk("fb%d: %s frame buffer device, using %dK of video memory\n", 3745 fb_info(info, "%s frame buffer device, using %dK of video memory\n",
3746 info->node, info->fix.id, info->fix.smem_len>>10); 3746 info->fix.id, info->fix.smem_len>>10);
3747 3747
3748 return 0; 3748 return 0;
3749 3749
diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c
index e43401afdd03..1b0b233b8b39 100644
--- a/drivers/video/arcfb.c
+++ b/drivers/video/arcfb.c
@@ -556,9 +556,8 @@ static int arcfb_probe(struct platform_device *dev)
556 goto err1; 556 goto err1;
557 } 557 }
558 } 558 }
559 printk(KERN_INFO 559 fb_info(info, "Arc frame buffer device, using %dK of video memory\n",
560 "fb%d: Arc frame buffer device, using %dK of video memory\n", 560 videomemorysize >> 10);
561 info->node, videomemorysize >> 10);
562 561
563 /* this inits the lcd but doesn't clear dirty pixels */ 562 /* this inits the lcd but doesn't clear dirty pixels */
564 for (i = 0; i < num_cols * num_rows; i++) { 563 for (i = 0; i < num_cols * num_rows; i++) {
@@ -572,8 +571,7 @@ static int arcfb_probe(struct platform_device *dev)
572 /* if we were told to splash the screen, we just clear it */ 571 /* if we were told to splash the screen, we just clear it */
573 if (!nosplash) { 572 if (!nosplash) {
574 for (i = 0; i < num_cols * num_rows; i++) { 573 for (i = 0; i < num_cols * num_rows; i++) {
575 printk(KERN_INFO "fb%d: splashing lcd %d\n", 574 fb_info(info, "splashing lcd %d\n", i);
576 info->node, i);
577 ks108_set_start_line(par, i, 0); 575 ks108_set_start_line(par, i, 0);
578 ks108_clear_lcd(par, i); 576 ks108_clear_lcd(par, i);
579 } 577 }
diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c
index 15dd5423d64a..a6b29bd4a12a 100644
--- a/drivers/video/arkfb.c
+++ b/drivers/video/arkfb.c
@@ -137,8 +137,7 @@ static void arkfb_settile(struct fb_info *info, struct fb_tilemap *map)
137 137
138 if ((map->width != 8) || (map->height != 16) || 138 if ((map->width != 8) || (map->height != 16) ||
139 (map->depth != 1) || (map->length != 256)) { 139 (map->depth != 1) || (map->length != 256)) {
140 printk(KERN_ERR "fb%d: unsupported font parameters: width %d, " 140 fb_err(info, "unsupported font parameters: width %d, height %d, depth %d, length %d\n",
141 "height %d, depth %d, length %d\n", info->node,
142 map->width, map->height, map->depth, map->length); 141 map->width, map->height, map->depth, map->length);
143 return; 142 return;
144 } 143 }
@@ -517,7 +516,7 @@ static void ark_set_pixclock(struct fb_info *info, u32 pixclock)
517 516
518 int rv = dac_set_freq(par->dac, 0, 1000000000 / pixclock); 517 int rv = dac_set_freq(par->dac, 0, 1000000000 / pixclock);
519 if (rv < 0) { 518 if (rv < 0) {
520 printk(KERN_ERR "fb%d: cannot set requested pixclock, keeping old value\n", info->node); 519 fb_err(info, "cannot set requested pixclock, keeping old value\n");
521 return; 520 return;
522 } 521 }
523 522
@@ -584,7 +583,7 @@ static int arkfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
584 rv = svga_match_format (arkfb_formats, var, NULL); 583 rv = svga_match_format (arkfb_formats, var, NULL);
585 if (rv < 0) 584 if (rv < 0)
586 { 585 {
587 printk(KERN_ERR "fb%d: unsupported mode requested\n", info->node); 586 fb_err(info, "unsupported mode requested\n");
588 return rv; 587 return rv;
589 } 588 }
590 589
@@ -604,14 +603,15 @@ static int arkfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
604 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual; 603 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual;
605 if (mem > info->screen_size) 604 if (mem > info->screen_size)
606 { 605 {
607 printk(KERN_ERR "fb%d: not enough framebuffer memory (%d kB requested , %d kB available)\n", info->node, mem >> 10, (unsigned int) (info->screen_size >> 10)); 606 fb_err(info, "not enough framebuffer memory (%d kB requested, %d kB available)\n",
607 mem >> 10, (unsigned int) (info->screen_size >> 10));
608 return -EINVAL; 608 return -EINVAL;
609 } 609 }
610 610
611 rv = svga_check_timings (&ark_timing_regs, var, info->node); 611 rv = svga_check_timings (&ark_timing_regs, var, info->node);
612 if (rv < 0) 612 if (rv < 0)
613 { 613 {
614 printk(KERN_ERR "fb%d: invalid timings requested\n", info->node); 614 fb_err(info, "invalid timings requested\n");
615 return rv; 615 return rv;
616 } 616 }
617 617
@@ -693,7 +693,7 @@ static int arkfb_set_par(struct fb_info *info)
693 vga_wseq(par->state.vgabase, 0x18, regval); 693 vga_wseq(par->state.vgabase, 0x18, regval);
694 694
695 /* Set the offset register */ 695 /* Set the offset register */
696 pr_debug("fb%d: offset register : %d\n", info->node, offset_value); 696 fb_dbg(info, "offset register : %d\n", offset_value);
697 svga_wcrt_multi(par->state.vgabase, ark_offset_regs, offset_value); 697 svga_wcrt_multi(par->state.vgabase, ark_offset_regs, offset_value);
698 698
699 /* fix for hi-res textmode */ 699 /* fix for hi-res textmode */
@@ -716,7 +716,7 @@ static int arkfb_set_par(struct fb_info *info)
716 /* Set mode-specific register values */ 716 /* Set mode-specific register values */
717 switch (mode) { 717 switch (mode) {
718 case 0: 718 case 0:
719 pr_debug("fb%d: text mode\n", info->node); 719 fb_dbg(info, "text mode\n");
720 svga_set_textmode_vga_regs(par->state.vgabase); 720 svga_set_textmode_vga_regs(par->state.vgabase);
721 721
722 vga_wseq(par->state.vgabase, 0x11, 0x10); /* basic VGA mode */ 722 vga_wseq(par->state.vgabase, 0x11, 0x10); /* basic VGA mode */
@@ -725,7 +725,7 @@ static int arkfb_set_par(struct fb_info *info)
725 725
726 break; 726 break;
727 case 1: 727 case 1:
728 pr_debug("fb%d: 4 bit pseudocolor\n", info->node); 728 fb_dbg(info, "4 bit pseudocolor\n");
729 vga_wgfx(par->state.vgabase, VGA_GFX_MODE, 0x40); 729 vga_wgfx(par->state.vgabase, VGA_GFX_MODE, 0x40);
730 730
731 vga_wseq(par->state.vgabase, 0x11, 0x10); /* basic VGA mode */ 731 vga_wseq(par->state.vgabase, 0x11, 0x10); /* basic VGA mode */
@@ -733,44 +733,44 @@ static int arkfb_set_par(struct fb_info *info)
733 dac_set_mode(par->dac, DAC_PSEUDO8_8); 733 dac_set_mode(par->dac, DAC_PSEUDO8_8);
734 break; 734 break;
735 case 2: 735 case 2:
736 pr_debug("fb%d: 4 bit pseudocolor, planar\n", info->node); 736 fb_dbg(info, "4 bit pseudocolor, planar\n");
737 737
738 vga_wseq(par->state.vgabase, 0x11, 0x10); /* basic VGA mode */ 738 vga_wseq(par->state.vgabase, 0x11, 0x10); /* basic VGA mode */
739 svga_wcrt_mask(par->state.vgabase, 0x46, 0x00, 0x04); /* 8bit pixel path */ 739 svga_wcrt_mask(par->state.vgabase, 0x46, 0x00, 0x04); /* 8bit pixel path */
740 dac_set_mode(par->dac, DAC_PSEUDO8_8); 740 dac_set_mode(par->dac, DAC_PSEUDO8_8);
741 break; 741 break;
742 case 3: 742 case 3:
743 pr_debug("fb%d: 8 bit pseudocolor\n", info->node); 743 fb_dbg(info, "8 bit pseudocolor\n");
744 744
745 vga_wseq(par->state.vgabase, 0x11, 0x16); /* 8bpp accel mode */ 745 vga_wseq(par->state.vgabase, 0x11, 0x16); /* 8bpp accel mode */
746 746
747 if (info->var.pixclock > 20000) { 747 if (info->var.pixclock > 20000) {
748 pr_debug("fb%d: not using multiplex\n", info->node); 748 fb_dbg(info, "not using multiplex\n");
749 svga_wcrt_mask(par->state.vgabase, 0x46, 0x00, 0x04); /* 8bit pixel path */ 749 svga_wcrt_mask(par->state.vgabase, 0x46, 0x00, 0x04); /* 8bit pixel path */
750 dac_set_mode(par->dac, DAC_PSEUDO8_8); 750 dac_set_mode(par->dac, DAC_PSEUDO8_8);
751 } else { 751 } else {
752 pr_debug("fb%d: using multiplex\n", info->node); 752 fb_dbg(info, "using multiplex\n");
753 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */ 753 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */
754 dac_set_mode(par->dac, DAC_PSEUDO8_16); 754 dac_set_mode(par->dac, DAC_PSEUDO8_16);
755 hdiv = 2; 755 hdiv = 2;
756 } 756 }
757 break; 757 break;
758 case 4: 758 case 4:
759 pr_debug("fb%d: 5/5/5 truecolor\n", info->node); 759 fb_dbg(info, "5/5/5 truecolor\n");
760 760
761 vga_wseq(par->state.vgabase, 0x11, 0x1A); /* 16bpp accel mode */ 761 vga_wseq(par->state.vgabase, 0x11, 0x1A); /* 16bpp accel mode */
762 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */ 762 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */
763 dac_set_mode(par->dac, DAC_RGB1555_16); 763 dac_set_mode(par->dac, DAC_RGB1555_16);
764 break; 764 break;
765 case 5: 765 case 5:
766 pr_debug("fb%d: 5/6/5 truecolor\n", info->node); 766 fb_dbg(info, "5/6/5 truecolor\n");
767 767
768 vga_wseq(par->state.vgabase, 0x11, 0x1A); /* 16bpp accel mode */ 768 vga_wseq(par->state.vgabase, 0x11, 0x1A); /* 16bpp accel mode */
769 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */ 769 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */
770 dac_set_mode(par->dac, DAC_RGB0565_16); 770 dac_set_mode(par->dac, DAC_RGB0565_16);
771 break; 771 break;
772 case 6: 772 case 6:
773 pr_debug("fb%d: 8/8/8 truecolor\n", info->node); 773 fb_dbg(info, "8/8/8 truecolor\n");
774 774
775 vga_wseq(par->state.vgabase, 0x11, 0x16); /* 8bpp accel mode ??? */ 775 vga_wseq(par->state.vgabase, 0x11, 0x16); /* 8bpp accel mode ??? */
776 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */ 776 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */
@@ -779,7 +779,7 @@ static int arkfb_set_par(struct fb_info *info)
779 hdiv = 2; 779 hdiv = 2;
780 break; 780 break;
781 case 7: 781 case 7:
782 pr_debug("fb%d: 8/8/8/8 truecolor\n", info->node); 782 fb_dbg(info, "8/8/8/8 truecolor\n");
783 783
784 vga_wseq(par->state.vgabase, 0x11, 0x1E); /* 32bpp accel mode */ 784 vga_wseq(par->state.vgabase, 0x11, 0x1E); /* 32bpp accel mode */
785 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */ 785 svga_wcrt_mask(par->state.vgabase, 0x46, 0x04, 0x04); /* 16bit pixel path */
@@ -787,7 +787,7 @@ static int arkfb_set_par(struct fb_info *info)
787 hmul = 2; 787 hmul = 2;
788 break; 788 break;
789 default: 789 default:
790 printk(KERN_ERR "fb%d: unsupported mode - bug\n", info->node); 790 fb_err(info, "unsupported mode - bug\n");
791 return -EINVAL; 791 return -EINVAL;
792 } 792 }
793 793
@@ -879,19 +879,19 @@ static int arkfb_blank(int blank_mode, struct fb_info *info)
879 879
880 switch (blank_mode) { 880 switch (blank_mode) {
881 case FB_BLANK_UNBLANK: 881 case FB_BLANK_UNBLANK:
882 pr_debug("fb%d: unblank\n", info->node); 882 fb_dbg(info, "unblank\n");
883 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20); 883 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20);
884 svga_wcrt_mask(par->state.vgabase, 0x17, 0x80, 0x80); 884 svga_wcrt_mask(par->state.vgabase, 0x17, 0x80, 0x80);
885 break; 885 break;
886 case FB_BLANK_NORMAL: 886 case FB_BLANK_NORMAL:
887 pr_debug("fb%d: blank\n", info->node); 887 fb_dbg(info, "blank\n");
888 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 888 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
889 svga_wcrt_mask(par->state.vgabase, 0x17, 0x80, 0x80); 889 svga_wcrt_mask(par->state.vgabase, 0x17, 0x80, 0x80);
890 break; 890 break;
891 case FB_BLANK_POWERDOWN: 891 case FB_BLANK_POWERDOWN:
892 case FB_BLANK_HSYNC_SUSPEND: 892 case FB_BLANK_HSYNC_SUSPEND:
893 case FB_BLANK_VSYNC_SUSPEND: 893 case FB_BLANK_VSYNC_SUSPEND:
894 pr_debug("fb%d: sync down\n", info->node); 894 fb_dbg(info, "sync down\n");
895 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 895 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
896 svga_wcrt_mask(par->state.vgabase, 0x17, 0x00, 0x80); 896 svga_wcrt_mask(par->state.vgabase, 0x17, 0x00, 0x80);
897 break; 897 break;
@@ -1052,8 +1052,8 @@ static int ark_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
1052 goto err_reg_fb; 1052 goto err_reg_fb;
1053 } 1053 }
1054 1054
1055 printk(KERN_INFO "fb%d: %s on %s, %d MB RAM\n", info->node, info->fix.id, 1055 fb_info(info, "%s on %s, %d MB RAM\n",
1056 pci_name(dev), info->fix.smem_len >> 20); 1056 info->fix.id, pci_name(dev), info->fix.smem_len >> 20);
1057 1057
1058 /* Record a reference to the driver data */ 1058 /* Record a reference to the driver data */
1059 pci_set_drvdata(dev, info); 1059 pci_set_drvdata(dev, info);
diff --git a/drivers/video/asiliantfb.c b/drivers/video/asiliantfb.c
index d5a37d62847b..d611f1a1ac53 100644
--- a/drivers/video/asiliantfb.c
+++ b/drivers/video/asiliantfb.c
@@ -527,8 +527,8 @@ static int init_asiliant(struct fb_info *p, unsigned long addr)
527 return err; 527 return err;
528 } 528 }
529 529
530 printk(KERN_INFO "fb%d: Asiliant 69000 frame buffer (%dK RAM detected)\n", 530 fb_info(p, "Asiliant 69000 frame buffer (%dK RAM detected)\n",
531 p->node, p->fix.smem_len / 1024); 531 p->fix.smem_len / 1024);
532 532
533 writeb(0xff, mmio_base + 0x78c); 533 writeb(0xff, mmio_base + 0x78c);
534 chips_hw_init(p); 534 chips_hw_init(p);
diff --git a/drivers/video/atafb.c b/drivers/video/atafb.c
index 64e41f5448c4..e21d1f58554c 100644
--- a/drivers/video/atafb.c
+++ b/drivers/video/atafb.c
@@ -3246,11 +3246,8 @@ int __init atafb_init(void)
3246 return -EINVAL; 3246 return -EINVAL;
3247 } 3247 }
3248 3248
3249 // FIXME: mode needs setting! 3249 fb_info(&fb_info, "frame buffer device, using %dK of video memory\n",
3250 //printk("fb%d: %s frame buffer device, using %dK of video memory\n", 3250 screen_len >> 10);
3251 // fb_info.node, fb_info.mode->name, screen_len>>10);
3252 printk("fb%d: frame buffer device, using %dK of video memory\n",
3253 fb_info.node, screen_len >> 10);
3254 3251
3255 /* TODO: This driver cannot be unloaded yet */ 3252 /* TODO: This driver cannot be unloaded yet */
3256 return 0; 3253 return 0;
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c
index b5edb6f08b84..12ca031877d4 100644
--- a/drivers/video/aty/aty128fb.c
+++ b/drivers/video/aty/aty128fb.c
@@ -2027,8 +2027,8 @@ static int aty128_init(struct pci_dev *pdev, const struct pci_device_id *ent)
2027 if (register_framebuffer(info) < 0) 2027 if (register_framebuffer(info) < 0)
2028 return 0; 2028 return 0;
2029 2029
2030 printk(KERN_INFO "fb%d: %s frame buffer device on %s\n", 2030 fb_info(info, "%s frame buffer device on %s\n",
2031 info->node, info->fix.id, video_card); 2031 info->fix.id, video_card);
2032 2032
2033 return 1; /* success! */ 2033 return 1; /* success! */
2034} 2034}
diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c
index 393d5a03b34e..8556264b16b7 100644
--- a/drivers/video/broadsheetfb.c
+++ b/drivers/video/broadsheetfb.c
@@ -1167,9 +1167,8 @@ static int broadsheetfb_probe(struct platform_device *dev)
1167 if (retval < 0) 1167 if (retval < 0)
1168 goto err_unreg_fb; 1168 goto err_unreg_fb;
1169 1169
1170 printk(KERN_INFO 1170 fb_info(info, "Broadsheet frame buffer, using %dK of video memory\n",
1171 "fb%d: Broadsheet frame buffer, using %dK of video memory\n", 1171 videomemorysize >> 10);
1172 info->node, videomemorysize >> 10);
1173 1172
1174 1173
1175 return 0; 1174 return 0;
diff --git a/drivers/video/carminefb.c b/drivers/video/carminefb.c
index b98f709abf52..65f7c15f5fdb 100644
--- a/drivers/video/carminefb.c
+++ b/drivers/video/carminefb.c
@@ -585,8 +585,7 @@ static int alloc_carmine_fb(void __iomem *regs, void __iomem *smem_base,
585 if (ret < 0) 585 if (ret < 0)
586 goto err_dealloc_cmap; 586 goto err_dealloc_cmap;
587 587
588 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, 588 fb_info(info, "%s frame buffer device\n", info->fix.id);
589 info->fix.id);
590 589
591 *rinfo = info; 590 *rinfo = info;
592 return 0; 591 return 0;
diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c
index a7b0ab62b97b..d5533f4db1cf 100644
--- a/drivers/video/cobalt_lcdfb.c
+++ b/drivers/video/cobalt_lcdfb.c
@@ -368,8 +368,7 @@ static int cobalt_lcdfb_probe(struct platform_device *dev)
368 368
369 lcd_clear(info); 369 lcd_clear(info);
370 370
371 printk(KERN_INFO "fb%d: Cobalt server LCD frame buffer device\n", 371 fb_info(info, "Cobalt server LCD frame buffer device\n");
372 info->node);
373 372
374 return 0; 373 return 0;
375} 374}
diff --git a/drivers/video/controlfb.c b/drivers/video/controlfb.c
index 67b77b40aa7f..fdadef979238 100644
--- a/drivers/video/controlfb.c
+++ b/drivers/video/controlfb.c
@@ -471,8 +471,8 @@ try_again:
471 /* Register with fbdev layer */ 471 /* Register with fbdev layer */
472 if (register_framebuffer(&p->info) < 0) 472 if (register_framebuffer(&p->info) < 0)
473 return -ENXIO; 473 return -ENXIO;
474 474
475 printk(KERN_INFO "fb%d: control display adapter\n", p->info.node); 475 fb_info(&p->info, "control display adapter\n");
476 476
477 return 0; 477 return 0;
478} 478}
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index fcb950031246..cd7c0df9f24b 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -322,8 +322,7 @@ static int efifb_probe(struct platform_device *dev)
322 printk(KERN_ERR "efifb: cannot register framebuffer\n"); 322 printk(KERN_ERR "efifb: cannot register framebuffer\n");
323 goto err_fb_dealoc; 323 goto err_fb_dealoc;
324 } 324 }
325 printk(KERN_INFO "fb%d: %s frame buffer device\n", 325 fb_info(info, "%s frame buffer device\n", info->fix.id);
326 info->node, info->fix.id);
327 return 0; 326 return 0;
328 327
329err_fb_dealoc: 328err_fb_dealoc:
diff --git a/drivers/video/fb-puv3.c b/drivers/video/fb-puv3.c
index 27fc956166fa..6db9ebd042a3 100644
--- a/drivers/video/fb-puv3.c
+++ b/drivers/video/fb-puv3.c
@@ -713,9 +713,8 @@ static int unifb_probe(struct platform_device *dev)
713 platform_set_drvdata(dev, info); 713 platform_set_drvdata(dev, info);
714 platform_device_add_data(dev, unifb_regs, sizeof(u32) * UNIFB_REGS_NUM); 714 platform_device_add_data(dev, unifb_regs, sizeof(u32) * UNIFB_REGS_NUM);
715 715
716 printk(KERN_INFO 716 fb_info(info, "Virtual frame buffer device, using %dM of video memory\n",
717 "fb%d: Virtual frame buffer device, using %dM of video memory\n", 717 UNIFB_MEMSIZE >> 20);
718 info->node, UNIFB_MEMSIZE >> 20);
719 return 0; 718 return 0;
720err2: 719err2:
721 fb_dealloc_cmap(&info->cmap); 720 fb_dealloc_cmap(&info->cmap);
diff --git a/drivers/video/fm2fb.c b/drivers/video/fm2fb.c
index c99c9671302b..e69d47af9932 100644
--- a/drivers/video/fm2fb.c
+++ b/drivers/video/fm2fb.c
@@ -289,7 +289,7 @@ static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id)
289 zorro_release_device(z); 289 zorro_release_device(z);
290 return -EINVAL; 290 return -EINVAL;
291 } 291 }
292 printk("fb%d: %s frame buffer device\n", info->node, fb_fix.id); 292 fb_info(info, "%s frame buffer device\n", fb_fix.id);
293 return 0; 293 return 0;
294} 294}
295 295
diff --git a/drivers/video/gbefb.c b/drivers/video/gbefb.c
index ceab37020fff..4c7cb368a9dc 100644
--- a/drivers/video/gbefb.c
+++ b/drivers/video/gbefb.c
@@ -1236,9 +1236,9 @@ static int gbefb_probe(struct platform_device *p_dev)
1236 platform_set_drvdata(p_dev, info); 1236 platform_set_drvdata(p_dev, info);
1237 gbefb_create_sysfs(&p_dev->dev); 1237 gbefb_create_sysfs(&p_dev->dev);
1238 1238
1239 printk(KERN_INFO "fb%d: %s rev %d @ 0x%08x using %dkB memory\n", 1239 fb_info(info, "%s rev %d @ 0x%08x using %dkB memory\n",
1240 info->node, info->fix.id, gbe_revision, (unsigned) GBE_BASE, 1240 info->fix.id, gbe_revision, (unsigned)GBE_BASE,
1241 gbe_mem_size >> 10); 1241 gbe_mem_size >> 10);
1242 1242
1243 return 0; 1243 return 0;
1244 1244
diff --git a/drivers/video/geode/gx1fb_core.c b/drivers/video/geode/gx1fb_core.c
index 7551a04f5c31..2794ba11f332 100644
--- a/drivers/video/geode/gx1fb_core.c
+++ b/drivers/video/geode/gx1fb_core.c
@@ -357,7 +357,7 @@ static int gx1fb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
357 goto err; 357 goto err;
358 } 358 }
359 pci_set_drvdata(pdev, info); 359 pci_set_drvdata(pdev, info);
360 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, info->fix.id); 360 fb_info(info, "%s frame buffer device\n", info->fix.id);
361 return 0; 361 return 0;
362 362
363 err: 363 err:
diff --git a/drivers/video/geode/gxfb_core.c b/drivers/video/geode/gxfb_core.c
index a42d74d6eded..1790f14bab15 100644
--- a/drivers/video/geode/gxfb_core.c
+++ b/drivers/video/geode/gxfb_core.c
@@ -423,7 +423,7 @@ static int gxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
423 goto err; 423 goto err;
424 } 424 }
425 pci_set_drvdata(pdev, info); 425 pci_set_drvdata(pdev, info);
426 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, info->fix.id); 426 fb_info(info, "%s frame buffer device\n", info->fix.id);
427 return 0; 427 return 0;
428 428
429 err: 429 err:
diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c
index 10de31b21d0a..9e1d19d673a1 100644
--- a/drivers/video/geode/lxfb_core.c
+++ b/drivers/video/geode/lxfb_core.c
@@ -555,8 +555,7 @@ static int lxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
555 goto err; 555 goto err;
556 } 556 }
557 pci_set_drvdata(pdev, info); 557 pci_set_drvdata(pdev, info);
558 printk(KERN_INFO "fb%d: %s frame buffer device\n", 558 fb_info(info, "%s frame buffer device\n", info->fix.id);
559 info->node, info->fix.id);
560 559
561 return 0; 560 return 0;
562 561
diff --git a/drivers/video/gxt4500.c b/drivers/video/gxt4500.c
index c35663f6a54a..135d78a02588 100644
--- a/drivers/video/gxt4500.c
+++ b/drivers/video/gxt4500.c
@@ -698,8 +698,7 @@ static int gxt4500_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
698 dev_err(&pdev->dev, "gxt4500: cannot register framebuffer\n"); 698 dev_err(&pdev->dev, "gxt4500: cannot register framebuffer\n");
699 goto err_free_cmap; 699 goto err_free_cmap;
700 } 700 }
701 printk(KERN_INFO "fb%d: %s frame buffer device\n", 701 fb_info(info, "%s frame buffer device\n", info->fix.id);
702 info->node, info->fix.id);
703 702
704 return 0; 703 return 0;
705 704
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c
index 702b599dc3d6..f64120ec9192 100644
--- a/drivers/video/hecubafb.c
+++ b/drivers/video/hecubafb.c
@@ -261,9 +261,8 @@ static int hecubafb_probe(struct platform_device *dev)
261 goto err_fbreg; 261 goto err_fbreg;
262 platform_set_drvdata(dev, info); 262 platform_set_drvdata(dev, info);
263 263
264 printk(KERN_INFO 264 fb_info(info, "Hecuba frame buffer device, using %dK of video memory\n",
265 "fb%d: Hecuba frame buffer device, using %dK of video memory\n", 265 videomemorysize >> 10);
266 info->node, videomemorysize >> 10);
267 266
268 /* this inits the dpy */ 267 /* this inits the dpy */
269 retval = par->board->init(par); 268 retval = par->board->init(par);
diff --git a/drivers/video/hgafb.c b/drivers/video/hgafb.c
index 1e9e2d819d1f..5ff9fe2116a4 100644
--- a/drivers/video/hgafb.c
+++ b/drivers/video/hgafb.c
@@ -586,8 +586,7 @@ static int hgafb_probe(struct platform_device *pdev)
586 return -EINVAL; 586 return -EINVAL;
587 } 587 }
588 588
589 printk(KERN_INFO "fb%d: %s frame buffer device\n", 589 fb_info(info, "%s frame buffer device\n", info->fix.id);
590 info->node, info->fix.id);
591 platform_set_drvdata(pdev, info); 590 platform_set_drvdata(pdev, info);
592 return 0; 591 return 0;
593} 592}
diff --git a/drivers/video/hitfb.c b/drivers/video/hitfb.c
index c2414d6ab646..a648d5186c6e 100644
--- a/drivers/video/hitfb.c
+++ b/drivers/video/hitfb.c
@@ -405,8 +405,7 @@ static int hitfb_probe(struct platform_device *dev)
405 405
406 platform_set_drvdata(dev, info); 406 platform_set_drvdata(dev, info);
407 407
408 printk(KERN_INFO "fb%d: %s frame buffer device\n", 408 fb_info(info, "%s frame buffer device\n", info->fix.id);
409 info->node, info->fix.id);
410 409
411 return 0; 410 return 0;
412 411
diff --git a/drivers/video/hpfb.c b/drivers/video/hpfb.c
index b802f93cef5d..a1b7e5fa9b09 100644
--- a/drivers/video/hpfb.c
+++ b/drivers/video/hpfb.c
@@ -298,8 +298,7 @@ static int hpfb_init_one(unsigned long phys_base, unsigned long virt_base)
298 if (ret < 0) 298 if (ret < 0)
299 goto dealloc_cmap; 299 goto dealloc_cmap;
300 300
301 printk(KERN_INFO "fb%d: %s frame buffer device\n", 301 fb_info(&fb_info, "%s frame buffer device\n", fb_info.fix.id);
302 fb_info.node, fb_info.fix.id);
303 302
304 return 0; 303 return 0;
305 304
diff --git a/drivers/video/i740fb.c b/drivers/video/i740fb.c
index 6501ac1dba0f..ca7c9df193b0 100644
--- a/drivers/video/i740fb.c
+++ b/drivers/video/i740fb.c
@@ -203,8 +203,7 @@ static int i740fb_release(struct fb_info *info, int user)
203 203
204 mutex_lock(&(par->open_lock)); 204 mutex_lock(&(par->open_lock));
205 if (par->ref_count == 0) { 205 if (par->ref_count == 0) {
206 printk(KERN_ERR "fb%d: release called with zero refcount\n", 206 fb_err(info, "release called with zero refcount\n");
207 info->node);
208 mutex_unlock(&(par->open_lock)); 207 mutex_unlock(&(par->open_lock));
209 return -EINVAL; 208 return -EINVAL;
210 } 209 }
@@ -1067,7 +1066,7 @@ static int i740fb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
1067 par->has_sgram = !((tmp & DRAM_RAS_TIMING) || 1066 par->has_sgram = !((tmp & DRAM_RAS_TIMING) ||
1068 (tmp & DRAM_RAS_PRECHARGE)); 1067 (tmp & DRAM_RAS_PRECHARGE));
1069 1068
1070 printk(KERN_INFO "fb%d: Intel740 on %s, %ld KB %s\n", info->node, 1069 fb_info(info, "Intel740 on %s, %ld KB %s\n",
1071 pci_name(dev), info->screen_size >> 10, 1070 pci_name(dev), info->screen_size >> 10,
1072 par->has_sgram ? "SGRAM" : "SDRAM"); 1071 par->has_sgram ? "SGRAM" : "SDRAM");
1073 1072
@@ -1143,8 +1142,7 @@ static int i740fb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
1143 goto err_reg_framebuffer; 1142 goto err_reg_framebuffer;
1144 } 1143 }
1145 1144
1146 printk(KERN_INFO "fb%d: %s frame buffer device\n", 1145 fb_info(info, "%s frame buffer device\n", info->fix.id);
1147 info->node, info->fix.id);
1148 pci_set_drvdata(dev, info); 1146 pci_set_drvdata(dev, info);
1149#ifdef CONFIG_MTRR 1147#ifdef CONFIG_MTRR
1150 if (mtrr) { 1148 if (mtrr) {
diff --git a/drivers/video/igafb.c b/drivers/video/igafb.c
index 79cbfa7d1a9b..486f18897414 100644
--- a/drivers/video/igafb.c
+++ b/drivers/video/igafb.c
@@ -360,9 +360,8 @@ static int __init iga_init(struct fb_info *info, struct iga_par *par)
360 if (register_framebuffer(info) < 0) 360 if (register_framebuffer(info) < 0)
361 return 0; 361 return 0;
362 362
363 printk("fb%d: %s frame buffer device at 0x%08lx [%dMB VRAM]\n", 363 fb_info(info, "%s frame buffer device at 0x%08lx [%dMB VRAM]\n",
364 info->node, info->fix.id, 364 info->fix.id, par->frame_buffer_phys, info->fix.smem_len >> 20);
365 par->frame_buffer_phys, info->fix.smem_len >> 20);
366 365
367 iga_blank_border(par); 366 iga_blank_border(par);
368 return 1; 367 return 1;
diff --git a/drivers/video/imsttfb.c b/drivers/video/imsttfb.c
index d5220cc90e93..aae10ce74f14 100644
--- a/drivers/video/imsttfb.c
+++ b/drivers/video/imsttfb.c
@@ -1461,8 +1461,8 @@ static void init_imstt(struct fb_info *info)
1461 } 1461 }
1462 1462
1463 tmp = (read_reg_le32(par->dc_regs, SSTATUS) & 0x0f00) >> 8; 1463 tmp = (read_reg_le32(par->dc_regs, SSTATUS) & 0x0f00) >> 8;
1464 printk("fb%u: %s frame buffer; %uMB vram; chip version %u\n", 1464 fb_info(info, "%s frame buffer; %uMB vram; chip version %u\n",
1465 info->node, info->fix.id, info->fix.smem_len >> 20, tmp); 1465 info->fix.id, info->fix.smem_len >> 20, tmp);
1466} 1466}
1467 1467
1468static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1468static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
diff --git a/drivers/video/kyro/fbdev.c b/drivers/video/kyro/fbdev.c
index 79bfb5c38409..50c857477e4f 100644
--- a/drivers/video/kyro/fbdev.c
+++ b/drivers/video/kyro/fbdev.c
@@ -735,10 +735,10 @@ static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
735 if (register_framebuffer(info) < 0) 735 if (register_framebuffer(info) < 0)
736 goto out_unmap; 736 goto out_unmap;
737 737
738 printk("fb%d: %s frame buffer device, at %dx%d@%d using %ldk/%ldk of VRAM\n", 738 fb_info(info, "%s frame buffer device, at %dx%d@%d using %ldk/%ldk of VRAM\n",
739 info->node, info->fix.id, info->var.xres, 739 info->fix.id,
740 info->var.yres, info->var.bits_per_pixel, size >> 10, 740 info->var.xres, info->var.yres, info->var.bits_per_pixel,
741 (unsigned long)info->fix.smem_len >> 10); 741 size >> 10, (unsigned long)info->fix.smem_len >> 10);
742 742
743 pci_set_drvdata(pdev, info); 743 pci_set_drvdata(pdev, info);
744 744
diff --git a/drivers/video/macfb.c b/drivers/video/macfb.c
index fe01add3700e..5bd2eb8d4f39 100644
--- a/drivers/video/macfb.c
+++ b/drivers/video/macfb.c
@@ -913,8 +913,7 @@ static int __init macfb_init(void)
913 if (err) 913 if (err)
914 goto fail_dealloc; 914 goto fail_dealloc;
915 915
916 pr_info("fb%d: %s frame buffer device\n", 916 fb_info(&fb_info, "%s frame buffer device\n", fb_info.fix.id);
917 fb_info.node, fb_info.fix.id);
918 917
919 return 0; 918 return 0;
920 919
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
index 245652911650..87c64ff4546c 100644
--- a/drivers/video/matrox/matroxfb_base.c
+++ b/drivers/video/matrox/matroxfb_base.c
@@ -1893,14 +1893,12 @@ static int initMatrox2(struct matrox_fb_info *minfo, struct board *b)
1893 if (register_framebuffer(&minfo->fbcon) < 0) { 1893 if (register_framebuffer(&minfo->fbcon) < 0) {
1894 goto failVideoIO; 1894 goto failVideoIO;
1895 } 1895 }
1896 printk("fb%d: %s frame buffer device\n", 1896 fb_info(&minfo->fbcon, "%s frame buffer device\n", minfo->fbcon.fix.id);
1897 minfo->fbcon.node, minfo->fbcon.fix.id);
1898 1897
1899 /* there is no console on this fb... but we have to initialize hardware 1898 /* there is no console on this fb... but we have to initialize hardware
1900 * until someone tells me what is proper thing to do */ 1899 * until someone tells me what is proper thing to do */
1901 if (!minfo->initialized) { 1900 if (!minfo->initialized) {
1902 printk(KERN_INFO "fb%d: initializing hardware\n", 1901 fb_info(&minfo->fbcon, "initializing hardware\n");
1903 minfo->fbcon.node);
1904 /* We have to use FB_ACTIVATE_FORCE, as we had to put vesafb_defined to the fbcon.var 1902 /* We have to use FB_ACTIVATE_FORCE, as we had to put vesafb_defined to the fbcon.var
1905 * already before, so register_framebuffer works correctly. */ 1903 * already before, so register_framebuffer works correctly. */
1906 vesafb_defined.activate |= FB_ACTIVATE_FORCE; 1904 vesafb_defined.activate |= FB_ACTIVATE_FORCE;
diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
index f87c4ef10b78..f0a5392f5fd3 100644
--- a/drivers/video/mbx/mbxfb.c
+++ b/drivers/video/mbx/mbxfb.c
@@ -976,7 +976,7 @@ static int mbxfb_probe(struct platform_device *dev)
976 976
977 platform_set_drvdata(dev, fbi); 977 platform_set_drvdata(dev, fbi);
978 978
979 printk(KERN_INFO "fb%d: mbx frame buffer device\n", fbi->node); 979 fb_info(fbi, "mbx frame buffer device\n");
980 980
981 if (mfbi->platform_probe) 981 if (mfbi->platform_probe)
982 mfbi->platform_probe(fbi); 982 mfbi->platform_probe(fbi);
diff --git a/drivers/video/neofb.c b/drivers/video/neofb.c
index 891b0bf841e3..5d815f31645c 100644
--- a/drivers/video/neofb.c
+++ b/drivers/video/neofb.c
@@ -2104,8 +2104,7 @@ static int neofb_probe(struct pci_dev *dev, const struct pci_device_id *id)
2104 if (err < 0) 2104 if (err < 0)
2105 goto err_reg_fb; 2105 goto err_reg_fb;
2106 2106
2107 printk(KERN_INFO "fb%d: %s frame buffer device\n", 2107 fb_info(info, "%s frame buffer device\n", info->fix.id);
2108 info->node, info->fix.id);
2109 2108
2110 /* 2109 /*
2111 * Our driver data 2110 * Our driver data
diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
index ec32f675466d..478f9808dee4 100644
--- a/drivers/video/nuc900fb.c
+++ b/drivers/video/nuc900fb.c
@@ -647,8 +647,7 @@ static int nuc900fb_probe(struct platform_device *pdev)
647 goto free_cpufreq; 647 goto free_cpufreq;
648 } 648 }
649 649
650 printk(KERN_INFO "fb%d: %s frame buffer device\n", 650 fb_info(fbinfo, "%s frame buffer device\n", fbinfo->fix.id);
651 fbinfo->node, fbinfo->fix.id);
652 651
653 return 0; 652 return 0;
654 653
diff --git a/drivers/video/offb.c b/drivers/video/offb.c
index 0c4f34311eda..9dbea2223401 100644
--- a/drivers/video/offb.c
+++ b/drivers/video/offb.c
@@ -515,8 +515,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
515 if (register_framebuffer(info) < 0) 515 if (register_framebuffer(info) < 0)
516 goto out_err; 516 goto out_err;
517 517
518 printk(KERN_INFO "fb%d: Open Firmware frame buffer device on %s\n", 518 fb_info(info, "Open Firmware frame buffer device on %s\n", full_name);
519 info->node, full_name);
520 return; 519 return;
521 520
522out_err: 521out_err:
diff --git a/drivers/video/platinumfb.c b/drivers/video/platinumfb.c
index b644037dd5bc..4c9299576827 100644
--- a/drivers/video/platinumfb.c
+++ b/drivers/video/platinumfb.c
@@ -403,7 +403,7 @@ try_again:
403 if (rc < 0) 403 if (rc < 0)
404 return rc; 404 return rc;
405 405
406 printk(KERN_INFO "fb%d: Apple Platinum frame buffer device\n", info->node); 406 fb_info(info, "Apple Platinum frame buffer device\n");
407 407
408 return 0; 408 return 0;
409} 409}
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
index 45d9a3fe35e7..3b85b647bc10 100644
--- a/drivers/video/pm2fb.c
+++ b/drivers/video/pm2fb.c
@@ -1694,8 +1694,8 @@ static int pm2fb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1694 if (retval < 0) 1694 if (retval < 0)
1695 goto err_exit_all; 1695 goto err_exit_all;
1696 1696
1697 printk(KERN_INFO "fb%d: %s frame buffer device, memory = %dK.\n", 1697 fb_info(info, "%s frame buffer device, memory = %dK\n",
1698 info->node, info->fix.id, pm2fb_fix.smem_len / 1024); 1698 info->fix.id, pm2fb_fix.smem_len / 1024);
1699 1699
1700 /* 1700 /*
1701 * Our driver data 1701 * Our driver data
diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c
index 9c17474340cd..4bf3273d0433 100644
--- a/drivers/video/pm3fb.c
+++ b/drivers/video/pm3fb.c
@@ -1445,8 +1445,7 @@ static int pm3fb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
1445 retval = -EINVAL; 1445 retval = -EINVAL;
1446 goto err_exit_all; 1446 goto err_exit_all;
1447 } 1447 }
1448 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, 1448 fb_info(info, "%s frame buffer device\n", info->fix.id);
1449 info->fix.id);
1450 pci_set_drvdata(dev, info); 1449 pci_set_drvdata(dev, info);
1451 return 0; 1450 return 0;
1452 1451
diff --git a/drivers/video/pmag-ba-fb.c b/drivers/video/pmag-ba-fb.c
index d1e46cedb1f7..914a52ba8477 100644
--- a/drivers/video/pmag-ba-fb.c
+++ b/drivers/video/pmag-ba-fb.c
@@ -212,8 +212,8 @@ static int pmagbafb_probe(struct device *dev)
212 212
213 get_device(dev); 213 get_device(dev);
214 214
215 pr_info("fb%d: %s frame buffer device at %s\n", 215 fb_info(info, "%s frame buffer device at %s\n",
216 info->node, info->fix.id, dev_name(dev)); 216 info->fix.id, dev_name(dev));
217 217
218 return 0; 218 return 0;
219 219
diff --git a/drivers/video/pmagb-b-fb.c b/drivers/video/pmagb-b-fb.c
index 0e1317400328..0822b6f8dddc 100644
--- a/drivers/video/pmagb-b-fb.c
+++ b/drivers/video/pmagb-b-fb.c
@@ -328,11 +328,10 @@ static int pmagbbfb_probe(struct device *dev)
328 snprintf(freq1, sizeof(freq1), "%u.%03uMHz", 328 snprintf(freq1, sizeof(freq1), "%u.%03uMHz",
329 par->osc1 / 1000, par->osc1 % 1000); 329 par->osc1 / 1000, par->osc1 % 1000);
330 330
331 pr_info("fb%d: %s frame buffer device at %s\n", 331 fb_info(info, "%s frame buffer device at %s\n",
332 info->node, info->fix.id, dev_name(dev)); 332 info->fix.id, dev_name(dev));
333 pr_info("fb%d: Osc0: %s, Osc1: %s, Osc%u selected\n", 333 fb_info(info, "Osc0: %s, Osc1: %s, Osc%u selected\n",
334 info->node, freq0, par->osc1 ? freq1 : "disabled", 334 freq0, par->osc1 ? freq1 : "disabled", par->osc1 != 0);
335 par->osc1 != 0);
336 335
337 return 0; 336 return 0;
338 337
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;
diff --git a/drivers/video/q40fb.c b/drivers/video/q40fb.c
index d44c7351de0f..7487f76f6275 100644
--- a/drivers/video/q40fb.c
+++ b/drivers/video/q40fb.c
@@ -119,8 +119,7 @@ static int q40fb_probe(struct platform_device *dev)
119 return -EINVAL; 119 return -EINVAL;
120 } 120 }
121 121
122 printk(KERN_INFO "fb%d: Q40 frame buffer alive and kicking !\n", 122 fb_info(info, "Q40 frame buffer alive and kicking !\n");
123 info->node);
124 return 0; 123 return 0;
125} 124}
126 125
diff --git a/drivers/video/s1d13xxxfb.c b/drivers/video/s1d13xxxfb.c
index 1399a469f8b0..83433cb0dfba 100644
--- a/drivers/video/s1d13xxxfb.c
+++ b/drivers/video/s1d13xxxfb.c
@@ -901,8 +901,7 @@ static int s1d13xxxfb_probe(struct platform_device *pdev)
901 goto bail; 901 goto bail;
902 } 902 }
903 903
904 printk(KERN_INFO "fb%d: %s frame buffer device\n", 904 fb_info(info, "%s frame buffer device\n", info->fix.id);
905 info->node, info->fix.id);
906 905
907 return 0; 906 return 0;
908 907
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c
index d158d2c0460f..d4436f587a95 100644
--- a/drivers/video/s3fb.c
+++ b/drivers/video/s3fb.c
@@ -306,8 +306,8 @@ static void s3fb_settile_fast(struct fb_info *info, struct fb_tilemap *map)
306 306
307 if ((map->width != 8) || (map->height != 16) || 307 if ((map->width != 8) || (map->height != 16) ||
308 (map->depth != 1) || (map->length != 256)) { 308 (map->depth != 1) || (map->length != 256)) {
309 printk(KERN_ERR "fb%d: unsupported font parameters: width %d, height %d, depth %d, length %d\n", 309 fb_err(info, "unsupported font parameters: width %d, height %d, depth %d, length %d\n",
310 info->node, map->width, map->height, map->depth, map->length); 310 map->width, map->height, map->depth, map->length);
311 return; 311 return;
312 } 312 }
313 313
@@ -476,7 +476,7 @@ static void s3_set_pixclock(struct fb_info *info, u32 pixclock)
476 rv = svga_compute_pll((par->chip == CHIP_365_TRIO3D) ? &s3_trio3d_pll : &s3_pll, 476 rv = svga_compute_pll((par->chip == CHIP_365_TRIO3D) ? &s3_trio3d_pll : &s3_pll,
477 1000000000 / pixclock, &m, &n, &r, info->node); 477 1000000000 / pixclock, &m, &n, &r, info->node);
478 if (rv < 0) { 478 if (rv < 0) {
479 printk(KERN_ERR "fb%d: cannot set requested pixclock, keeping old value\n", info->node); 479 fb_err(info, "cannot set requested pixclock, keeping old value\n");
480 return; 480 return;
481 } 481 }
482 482
@@ -569,7 +569,7 @@ static int s3fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
569 rv = -EINVAL; 569 rv = -EINVAL;
570 570
571 if (rv < 0) { 571 if (rv < 0) {
572 printk(KERN_ERR "fb%d: unsupported mode requested\n", info->node); 572 fb_err(info, "unsupported mode requested\n");
573 return rv; 573 return rv;
574 } 574 }
575 575
@@ -587,22 +587,21 @@ static int s3fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
587 /* Check whether have enough memory */ 587 /* Check whether have enough memory */
588 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual; 588 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual;
589 if (mem > info->screen_size) { 589 if (mem > info->screen_size) {
590 printk(KERN_ERR "fb%d: not enough framebuffer memory (%d kB requested , %d kB available)\n", 590 fb_err(info, "not enough framebuffer memory (%d kB requested , %u kB available)\n",
591 info->node, mem >> 10, (unsigned int) (info->screen_size >> 10)); 591 mem >> 10, (unsigned int) (info->screen_size >> 10));
592 return -EINVAL; 592 return -EINVAL;
593 } 593 }
594 594
595 rv = svga_check_timings (&s3_timing_regs, var, info->node); 595 rv = svga_check_timings (&s3_timing_regs, var, info->node);
596 if (rv < 0) { 596 if (rv < 0) {
597 printk(KERN_ERR "fb%d: invalid timings requested\n", info->node); 597 fb_err(info, "invalid timings requested\n");
598 return rv; 598 return rv;
599 } 599 }
600 600
601 rv = svga_compute_pll(&s3_pll, PICOS2KHZ(var->pixclock), &m, &n, &r, 601 rv = svga_compute_pll(&s3_pll, PICOS2KHZ(var->pixclock), &m, &n, &r,
602 info->node); 602 info->node);
603 if (rv < 0) { 603 if (rv < 0) {
604 printk(KERN_ERR "fb%d: invalid pixclock value requested\n", 604 fb_err(info, "invalid pixclock value requested\n");
605 info->node);
606 return rv; 605 return rv;
607 } 606 }
608 607
@@ -686,7 +685,7 @@ static int s3fb_set_par(struct fb_info *info)
686 685
687 686
688 /* Set the offset register */ 687 /* Set the offset register */
689 pr_debug("fb%d: offset register : %d\n", info->node, offset_value); 688 fb_dbg(info, "offset register : %d\n", offset_value);
690 svga_wcrt_multi(par->state.vgabase, s3_offset_regs, offset_value); 689 svga_wcrt_multi(par->state.vgabase, s3_offset_regs, offset_value);
691 690
692 if (par->chip != CHIP_357_VIRGE_GX2 && 691 if (par->chip != CHIP_357_VIRGE_GX2 &&
@@ -769,7 +768,7 @@ static int s3fb_set_par(struct fb_info *info)
769 /* Set mode-specific register values */ 768 /* Set mode-specific register values */
770 switch (mode) { 769 switch (mode) {
771 case 0: 770 case 0:
772 pr_debug("fb%d: text mode\n", info->node); 771 fb_dbg(info, "text mode\n");
773 svga_set_textmode_vga_regs(par->state.vgabase); 772 svga_set_textmode_vga_regs(par->state.vgabase);
774 773
775 /* Set additional registers like in 8-bit mode */ 774 /* Set additional registers like in 8-bit mode */
@@ -780,12 +779,12 @@ static int s3fb_set_par(struct fb_info *info)
780 svga_wcrt_mask(par->state.vgabase, 0x3A, 0x00, 0x30); 779 svga_wcrt_mask(par->state.vgabase, 0x3A, 0x00, 0x30);
781 780
782 if (fasttext) { 781 if (fasttext) {
783 pr_debug("fb%d: high speed text mode set\n", info->node); 782 fb_dbg(info, "high speed text mode set\n");
784 svga_wcrt_mask(par->state.vgabase, 0x31, 0x40, 0x40); 783 svga_wcrt_mask(par->state.vgabase, 0x31, 0x40, 0x40);
785 } 784 }
786 break; 785 break;
787 case 1: 786 case 1:
788 pr_debug("fb%d: 4 bit pseudocolor\n", info->node); 787 fb_dbg(info, "4 bit pseudocolor\n");
789 vga_wgfx(par->state.vgabase, VGA_GFX_MODE, 0x40); 788 vga_wgfx(par->state.vgabase, VGA_GFX_MODE, 0x40);
790 789
791 /* Set additional registers like in 8-bit mode */ 790 /* Set additional registers like in 8-bit mode */
@@ -796,7 +795,7 @@ static int s3fb_set_par(struct fb_info *info)
796 svga_wcrt_mask(par->state.vgabase, 0x3A, 0x00, 0x30); 795 svga_wcrt_mask(par->state.vgabase, 0x3A, 0x00, 0x30);
797 break; 796 break;
798 case 2: 797 case 2:
799 pr_debug("fb%d: 4 bit pseudocolor, planar\n", info->node); 798 fb_dbg(info, "4 bit pseudocolor, planar\n");
800 799
801 /* Set additional registers like in 8-bit mode */ 800 /* Set additional registers like in 8-bit mode */
802 svga_wcrt_mask(par->state.vgabase, 0x50, 0x00, 0x30); 801 svga_wcrt_mask(par->state.vgabase, 0x50, 0x00, 0x30);
@@ -806,7 +805,7 @@ static int s3fb_set_par(struct fb_info *info)
806 svga_wcrt_mask(par->state.vgabase, 0x3A, 0x00, 0x30); 805 svga_wcrt_mask(par->state.vgabase, 0x3A, 0x00, 0x30);
807 break; 806 break;
808 case 3: 807 case 3:
809 pr_debug("fb%d: 8 bit pseudocolor\n", info->node); 808 fb_dbg(info, "8 bit pseudocolor\n");
810 svga_wcrt_mask(par->state.vgabase, 0x50, 0x00, 0x30); 809 svga_wcrt_mask(par->state.vgabase, 0x50, 0x00, 0x30);
811 if (info->var.pixclock > 20000 || 810 if (info->var.pixclock > 20000 ||
812 par->chip == CHIP_357_VIRGE_GX2 || 811 par->chip == CHIP_357_VIRGE_GX2 ||
@@ -822,7 +821,7 @@ static int s3fb_set_par(struct fb_info *info)
822 } 821 }
823 break; 822 break;
824 case 4: 823 case 4:
825 pr_debug("fb%d: 5/5/5 truecolor\n", info->node); 824 fb_dbg(info, "5/5/5 truecolor\n");
826 if (par->chip == CHIP_988_VIRGE_VX) { 825 if (par->chip == CHIP_988_VIRGE_VX) {
827 if (info->var.pixclock > 20000) 826 if (info->var.pixclock > 20000)
828 svga_wcrt_mask(par->state.vgabase, 0x67, 0x20, 0xF0); 827 svga_wcrt_mask(par->state.vgabase, 0x67, 0x20, 0xF0);
@@ -850,7 +849,7 @@ static int s3fb_set_par(struct fb_info *info)
850 } 849 }
851 break; 850 break;
852 case 5: 851 case 5:
853 pr_debug("fb%d: 5/6/5 truecolor\n", info->node); 852 fb_dbg(info, "5/6/5 truecolor\n");
854 if (par->chip == CHIP_988_VIRGE_VX) { 853 if (par->chip == CHIP_988_VIRGE_VX) {
855 if (info->var.pixclock > 20000) 854 if (info->var.pixclock > 20000)
856 svga_wcrt_mask(par->state.vgabase, 0x67, 0x40, 0xF0); 855 svga_wcrt_mask(par->state.vgabase, 0x67, 0x40, 0xF0);
@@ -879,16 +878,16 @@ static int s3fb_set_par(struct fb_info *info)
879 break; 878 break;
880 case 6: 879 case 6:
881 /* VIRGE VX case */ 880 /* VIRGE VX case */
882 pr_debug("fb%d: 8/8/8 truecolor\n", info->node); 881 fb_dbg(info, "8/8/8 truecolor\n");
883 svga_wcrt_mask(par->state.vgabase, 0x67, 0xD0, 0xF0); 882 svga_wcrt_mask(par->state.vgabase, 0x67, 0xD0, 0xF0);
884 break; 883 break;
885 case 7: 884 case 7:
886 pr_debug("fb%d: 8/8/8/8 truecolor\n", info->node); 885 fb_dbg(info, "8/8/8/8 truecolor\n");
887 svga_wcrt_mask(par->state.vgabase, 0x50, 0x30, 0x30); 886 svga_wcrt_mask(par->state.vgabase, 0x50, 0x30, 0x30);
888 svga_wcrt_mask(par->state.vgabase, 0x67, 0xD0, 0xF0); 887 svga_wcrt_mask(par->state.vgabase, 0x67, 0xD0, 0xF0);
889 break; 888 break;
890 default: 889 default:
891 printk(KERN_ERR "fb%d: unsupported mode - bug\n", info->node); 890 fb_err(info, "unsupported mode - bug\n");
892 return -EINVAL; 891 return -EINVAL;
893 } 892 }
894 893
@@ -991,27 +990,27 @@ static int s3fb_blank(int blank_mode, struct fb_info *info)
991 990
992 switch (blank_mode) { 991 switch (blank_mode) {
993 case FB_BLANK_UNBLANK: 992 case FB_BLANK_UNBLANK:
994 pr_debug("fb%d: unblank\n", info->node); 993 fb_dbg(info, "unblank\n");
995 svga_wcrt_mask(par->state.vgabase, 0x56, 0x00, 0x06); 994 svga_wcrt_mask(par->state.vgabase, 0x56, 0x00, 0x06);
996 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20); 995 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20);
997 break; 996 break;
998 case FB_BLANK_NORMAL: 997 case FB_BLANK_NORMAL:
999 pr_debug("fb%d: blank\n", info->node); 998 fb_dbg(info, "blank\n");
1000 svga_wcrt_mask(par->state.vgabase, 0x56, 0x00, 0x06); 999 svga_wcrt_mask(par->state.vgabase, 0x56, 0x00, 0x06);
1001 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 1000 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
1002 break; 1001 break;
1003 case FB_BLANK_HSYNC_SUSPEND: 1002 case FB_BLANK_HSYNC_SUSPEND:
1004 pr_debug("fb%d: hsync\n", info->node); 1003 fb_dbg(info, "hsync\n");
1005 svga_wcrt_mask(par->state.vgabase, 0x56, 0x02, 0x06); 1004 svga_wcrt_mask(par->state.vgabase, 0x56, 0x02, 0x06);
1006 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 1005 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
1007 break; 1006 break;
1008 case FB_BLANK_VSYNC_SUSPEND: 1007 case FB_BLANK_VSYNC_SUSPEND:
1009 pr_debug("fb%d: vsync\n", info->node); 1008 fb_dbg(info, "vsync\n");
1010 svga_wcrt_mask(par->state.vgabase, 0x56, 0x04, 0x06); 1009 svga_wcrt_mask(par->state.vgabase, 0x56, 0x04, 0x06);
1011 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 1010 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
1012 break; 1011 break;
1013 case FB_BLANK_POWERDOWN: 1012 case FB_BLANK_POWERDOWN:
1014 pr_debug("fb%d: sync down\n", info->node); 1013 fb_dbg(info, "sync down\n");
1015 svga_wcrt_mask(par->state.vgabase, 0x56, 0x06, 0x06); 1014 svga_wcrt_mask(par->state.vgabase, 0x56, 0x06, 0x06);
1016 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 1015 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
1017 break; 1016 break;
@@ -1359,13 +1358,16 @@ static int s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
1359 goto err_reg_fb; 1358 goto err_reg_fb;
1360 } 1359 }
1361 1360
1362 printk(KERN_INFO "fb%d: %s on %s, %d MB RAM, %d MHz MCLK\n", info->node, info->fix.id, 1361 fb_info(info, "%s on %s, %d MB RAM, %d MHz MCLK\n",
1363 pci_name(dev), info->fix.smem_len >> 20, (par->mclk_freq + 500) / 1000); 1362 info->fix.id, pci_name(dev),
1363 info->fix.smem_len >> 20, (par->mclk_freq + 500) / 1000);
1364 1364
1365 if (par->chip == CHIP_UNKNOWN) 1365 if (par->chip == CHIP_UNKNOWN)
1366 printk(KERN_INFO "fb%d: unknown chip, CR2D=%x, CR2E=%x, CRT2F=%x, CRT30=%x\n", 1366 fb_info(info, "unknown chip, CR2D=%x, CR2E=%x, CRT2F=%x, CRT30=%x\n",
1367 info->node, vga_rcrt(par->state.vgabase, 0x2d), vga_rcrt(par->state.vgabase, 0x2e), 1367 vga_rcrt(par->state.vgabase, 0x2d),
1368 vga_rcrt(par->state.vgabase, 0x2f), vga_rcrt(par->state.vgabase, 0x30)); 1368 vga_rcrt(par->state.vgabase, 0x2e),
1369 vga_rcrt(par->state.vgabase, 0x2f),
1370 vga_rcrt(par->state.vgabase, 0x30));
1369 1371
1370 /* Record a reference to the driver data */ 1372 /* Record a reference to the driver data */
1371 pci_set_drvdata(dev, info); 1373 pci_set_drvdata(dev, info);
diff --git a/drivers/video/sgivwfb.c b/drivers/video/sgivwfb.c
index a9ac3ce2d0e9..bc74d0408998 100644
--- a/drivers/video/sgivwfb.c
+++ b/drivers/video/sgivwfb.c
@@ -803,8 +803,8 @@ static int sgivwfb_probe(struct platform_device *dev)
803 803
804 platform_set_drvdata(dev, info); 804 platform_set_drvdata(dev, info);
805 805
806 printk(KERN_INFO "fb%d: SGI DBE frame buffer device, using %ldK of video memory at %#lx\n", 806 fb_info(info, "SGI DBE frame buffer device, using %ldK of video memory at %#lx\n",
807 info->node, sgivwfb_mem_size >> 10, sgivwfb_mem_phys); 807 sgivwfb_mem_size >> 10, sgivwfb_mem_phys);
808 return 0; 808 return 0;
809 809
810fail_register_framebuffer: 810fail_register_framebuffer:
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c
index 793b40238fca..22ad028bf123 100644
--- a/drivers/video/sis/sis_main.c
+++ b/drivers/video/sis/sis_main.c
@@ -6478,8 +6478,8 @@ error_3: vfree(ivideo->bios_abase);
6478 "disabled"); 6478 "disabled");
6479 6479
6480 6480
6481 printk(KERN_INFO "fb%d: %s frame buffer device version %d.%d.%d\n", 6481 fb_info(sis_fb_info, "%s frame buffer device version %d.%d.%d\n",
6482 sis_fb_info->node, ivideo->myid, VER_MAJOR, VER_MINOR, VER_LEVEL); 6482 ivideo->myid, VER_MAJOR, VER_MINOR, VER_LEVEL);
6483 6483
6484 printk(KERN_INFO "sisfb: Copyright (C) 2001-2005 Thomas Winischhofer\n"); 6484 printk(KERN_INFO "sisfb: Copyright (C) 2001-2005 Thomas Winischhofer\n");
6485 6485
diff --git a/drivers/video/skeletonfb.c b/drivers/video/skeletonfb.c
index 2d4694c6b9e0..fefde7c6add7 100644
--- a/drivers/video/skeletonfb.c
+++ b/drivers/video/skeletonfb.c
@@ -824,8 +824,7 @@ static int xxxfb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
824 fb_dealloc_cmap(&info->cmap); 824 fb_dealloc_cmap(&info->cmap);
825 return -EINVAL; 825 return -EINVAL;
826 } 826 }
827 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, 827 fb_info(info, "%s frame buffer device\n", info->fix.id);
828 info->fix.id);
829 pci_set_drvdata(dev, info); /* or platform_set_drvdata(pdev, info) */ 828 pci_set_drvdata(dev, info); /* or platform_set_drvdata(pdev, info) */
830 return 0; 829 return 0;
831} 830}
diff --git a/drivers/video/sstfb.c b/drivers/video/sstfb.c
index 9c00026e3ae2..f0cb279ef333 100644
--- a/drivers/video/sstfb.c
+++ b/drivers/video/sstfb.c
@@ -706,10 +706,10 @@ static void sstfb_setvgapass( struct fb_info *info, int enable )
706 fbiinit0 = sst_read (FBIINIT0); 706 fbiinit0 = sst_read (FBIINIT0);
707 if (par->vgapass) { 707 if (par->vgapass) {
708 sst_write(FBIINIT0, fbiinit0 & ~DIS_VGA_PASSTHROUGH); 708 sst_write(FBIINIT0, fbiinit0 & ~DIS_VGA_PASSTHROUGH);
709 printk(KERN_INFO "fb%d: Enabling VGA pass-through\n", info->node ); 709 fb_info(info, "Enabling VGA pass-through\n");
710 } else { 710 } else {
711 sst_write(FBIINIT0, fbiinit0 | DIS_VGA_PASSTHROUGH); 711 sst_write(FBIINIT0, fbiinit0 | DIS_VGA_PASSTHROUGH);
712 printk(KERN_INFO "fb%d: Disabling VGA pass-through\n", info->node ); 712 fb_info(info, "Disabling VGA pass-through\n");
713 } 713 }
714 pci_write_config_dword(sst_dev, PCI_INIT_ENABLE, tmp); 714 pci_write_config_dword(sst_dev, PCI_INIT_ENABLE, tmp);
715} 715}
@@ -1437,8 +1437,8 @@ static int sstfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1437 printk(KERN_WARNING "sstfb: can't create sysfs entry.\n"); 1437 printk(KERN_WARNING "sstfb: can't create sysfs entry.\n");
1438 1438
1439 1439
1440 printk(KERN_INFO "fb%d: %s frame buffer device at 0x%p\n", 1440 fb_info(info, "%s frame buffer device at 0x%p\n",
1441 info->node, fix->id, info->screen_base); 1441 fix->id, info->screen_base);
1442 1442
1443 return 0; 1443 return 0;
1444 1444
diff --git a/drivers/video/stifb.c b/drivers/video/stifb.c
index 876648e15e9d..a943a7cbaf7f 100644
--- a/drivers/video/stifb.c
+++ b/drivers/video/stifb.c
@@ -1283,9 +1283,7 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
1283 1283
1284 sti->info = info; /* save for unregister_framebuffer() */ 1284 sti->info = info; /* save for unregister_framebuffer() */
1285 1285
1286 printk(KERN_INFO 1286 fb_info(&fb->info, "%s %dx%d-%d frame buffer device, %s, id: %04x, mmio: 0x%04lx\n",
1287 "fb%d: %s %dx%d-%d frame buffer device, %s, id: %04x, mmio: 0x%04lx\n",
1288 fb->info.node,
1289 fix->id, 1287 fix->id,
1290 var->xres, 1288 var->xres,
1291 var->yres, 1289 var->yres,
diff --git a/drivers/video/svgalib.c b/drivers/video/svgalib.c
index 33df9ec91795..9e01322fabe3 100644
--- a/drivers/video/svgalib.c
+++ b/drivers/video/svgalib.c
@@ -198,8 +198,8 @@ void svga_settile(struct fb_info *info, struct fb_tilemap *map)
198 198
199 if ((map->width != 8) || (map->height != 16) || 199 if ((map->width != 8) || (map->height != 16) ||
200 (map->depth != 1) || (map->length != 256)) { 200 (map->depth != 1) || (map->length != 256)) {
201 printk(KERN_ERR "fb%d: unsupported font parameters: width %d, height %d, depth %d, length %d\n", 201 fb_err(info, "unsupported font parameters: width %d, height %d, depth %d, length %d\n",
202 info->node, map->width, map->height, map->depth, map->length); 202 map->width, map->height, map->depth, map->length);
203 return; 203 return;
204 } 204 }
205 205
diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c
index c9c8e5a1fdee..f28674fea909 100644
--- a/drivers/video/tgafb.c
+++ b/drivers/video/tgafb.c
@@ -1671,8 +1671,8 @@ static int tgafb_register(struct device *dev)
1671 if (tga_bus_tc) 1671 if (tga_bus_tc)
1672 pr_info("tgafb: SFB+ detected, rev=0x%02x\n", 1672 pr_info("tgafb: SFB+ detected, rev=0x%02x\n",
1673 par->tga_chip_rev); 1673 par->tga_chip_rev);
1674 pr_info("fb%d: %s frame buffer device at 0x%lx\n", 1674 fb_info(info, "%s frame buffer device at 0x%lx\n",
1675 info->node, info->fix.id, (long)bar0_start); 1675 info->fix.id, (long)bar0_start);
1676 1676
1677 return 0; 1677 return 0;
1678 1678
diff --git a/drivers/video/tmiofb.c b/drivers/video/tmiofb.c
index b5b69a6b9dd8..7fb4e321a431 100644
--- a/drivers/video/tmiofb.c
+++ b/drivers/video/tmiofb.c
@@ -781,8 +781,7 @@ static int tmiofb_probe(struct platform_device *dev)
781 if (retval < 0) 781 if (retval < 0)
782 goto err_register_framebuffer; 782 goto err_register_framebuffer;
783 783
784 printk(KERN_INFO "fb%d: %s frame buffer device\n", 784 fb_info(info, "%s frame buffer device\n", info->fix.id);
785 info->node, info->fix.id);
786 785
787 return 0; 786 return 0;
788 787
diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c
index 676a4b9379d9..256fba7f4641 100644
--- a/drivers/video/uvesafb.c
+++ b/drivers/video/uvesafb.c
@@ -1770,13 +1770,11 @@ static int uvesafb_probe(struct platform_device *dev)
1770 "using %dk, total %dk\n", info->fix.smem_start, 1770 "using %dk, total %dk\n", info->fix.smem_start,
1771 info->screen_base, info->fix.smem_len/1024, 1771 info->screen_base, info->fix.smem_len/1024,
1772 par->vbe_ib.total_memory * 64); 1772 par->vbe_ib.total_memory * 64);
1773 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, 1773 fb_info(info, "%s frame buffer device\n", info->fix.id);
1774 info->fix.id);
1775 1774
1776 err = sysfs_create_group(&dev->dev.kobj, &uvesafb_dev_attgrp); 1775 err = sysfs_create_group(&dev->dev.kobj, &uvesafb_dev_attgrp);
1777 if (err != 0) 1776 if (err != 0)
1778 printk(KERN_WARNING "fb%d: failed to register attributes\n", 1777 fb_warn(info, "failed to register attributes\n");
1779 info->node);
1780 1778
1781 return 0; 1779 return 0;
1782 1780
diff --git a/drivers/video/valkyriefb.c b/drivers/video/valkyriefb.c
index 3f5a041601da..e287ebc47817 100644
--- a/drivers/video/valkyriefb.c
+++ b/drivers/video/valkyriefb.c
@@ -392,7 +392,7 @@ int __init valkyriefb_init(void)
392 if ((err = register_framebuffer(&p->info)) != 0) 392 if ((err = register_framebuffer(&p->info)) != 0)
393 goto out_cmap_free; 393 goto out_cmap_free;
394 394
395 printk(KERN_INFO "fb%d: valkyrie frame buffer device\n", p->info.node); 395 fb_info(&p->info, "valkyrie frame buffer device\n");
396 return 0; 396 return 0;
397 397
398 out_cmap_free: 398 out_cmap_free:
diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c
index bd83233ec227..1c7da3b098d6 100644
--- a/drivers/video/vesafb.c
+++ b/drivers/video/vesafb.c
@@ -489,8 +489,7 @@ static int vesafb_probe(struct platform_device *dev)
489 fb_dealloc_cmap(&info->cmap); 489 fb_dealloc_cmap(&info->cmap);
490 goto err; 490 goto err;
491 } 491 }
492 printk(KERN_INFO "fb%d: %s frame buffer device\n", 492 fb_info(info, "%s frame buffer device\n", info->fix.id);
493 info->node, info->fix.id);
494 return 0; 493 return 0;
495err: 494err:
496 if (info->screen_base) 495 if (info->screen_base)
diff --git a/drivers/video/vfb.c b/drivers/video/vfb.c
index ea2b523f804f..70a897b1e458 100644
--- a/drivers/video/vfb.c
+++ b/drivers/video/vfb.c
@@ -526,9 +526,8 @@ static int vfb_probe(struct platform_device *dev)
526 goto err2; 526 goto err2;
527 platform_set_drvdata(dev, info); 527 platform_set_drvdata(dev, info);
528 528
529 printk(KERN_INFO 529 fb_info(info, "Virtual frame buffer device, using %ldK of video memory\n",
530 "fb%d: Virtual frame buffer device, using %ldK of video memory\n", 530 videomemorysize >> 10);
531 info->node, videomemorysize >> 10);
532 return 0; 531 return 0;
533err2: 532err2:
534 fb_dealloc_cmap(&info->cmap); 533 fb_dealloc_cmap(&info->cmap);
diff --git a/drivers/video/vga16fb.c b/drivers/video/vga16fb.c
index 2827333703d9..283d335a759f 100644
--- a/drivers/video/vga16fb.c
+++ b/drivers/video/vga16fb.c
@@ -1377,8 +1377,7 @@ static int vga16fb_probe(struct platform_device *dev)
1377 goto err_check_var; 1377 goto err_check_var;
1378 } 1378 }
1379 1379
1380 printk(KERN_INFO "fb%d: %s frame buffer device\n", 1380 fb_info(info, "%s frame buffer device\n", info->fix.id);
1381 info->node, info->fix.id);
1382 platform_set_drvdata(dev, info); 1381 platform_set_drvdata(dev, info);
1383 1382
1384 return 0; 1383 return 0;
diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c
index 6b424ddd6793..8bc6e0958a09 100644
--- a/drivers/video/vt8623fb.c
+++ b/drivers/video/vt8623fb.c
@@ -266,7 +266,7 @@ static void vt8623_set_pixclock(struct fb_info *info, u32 pixclock)
266 266
267 rv = svga_compute_pll(&vt8623_pll, 1000000000 / pixclock, &m, &n, &r, info->node); 267 rv = svga_compute_pll(&vt8623_pll, 1000000000 / pixclock, &m, &n, &r, info->node);
268 if (rv < 0) { 268 if (rv < 0) {
269 printk(KERN_ERR "fb%d: cannot set requested pixclock, keeping old value\n", info->node); 269 fb_err(info, "cannot set requested pixclock, keeping old value\n");
270 return; 270 return;
271 } 271 }
272 272
@@ -335,7 +335,7 @@ static int vt8623fb_check_var(struct fb_var_screeninfo *var, struct fb_info *inf
335 rv = svga_match_format (vt8623fb_formats, var, NULL); 335 rv = svga_match_format (vt8623fb_formats, var, NULL);
336 if (rv < 0) 336 if (rv < 0)
337 { 337 {
338 printk(KERN_ERR "fb%d: unsupported mode requested\n", info->node); 338 fb_err(info, "unsupported mode requested\n");
339 return rv; 339 return rv;
340 } 340 }
341 341
@@ -354,21 +354,23 @@ static int vt8623fb_check_var(struct fb_var_screeninfo *var, struct fb_info *inf
354 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual; 354 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual;
355 if (mem > info->screen_size) 355 if (mem > info->screen_size)
356 { 356 {
357 printk(KERN_ERR "fb%d: not enough framebuffer memory (%d kB requested , %d kB available)\n", info->node, mem >> 10, (unsigned int) (info->screen_size >> 10)); 357 fb_err(info, "not enough framebuffer memory (%d kB requested, %d kB available)\n",
358 mem >> 10, (unsigned int) (info->screen_size >> 10));
358 return -EINVAL; 359 return -EINVAL;
359 } 360 }
360 361
361 /* Text mode is limited to 256 kB of memory */ 362 /* Text mode is limited to 256 kB of memory */
362 if ((var->bits_per_pixel == 0) && (mem > (256*1024))) 363 if ((var->bits_per_pixel == 0) && (mem > (256*1024)))
363 { 364 {
364 printk(KERN_ERR "fb%d: text framebuffer size too large (%d kB requested, 256 kB possible)\n", info->node, mem >> 10); 365 fb_err(info, "text framebuffer size too large (%d kB requested, 256 kB possible)\n",
366 mem >> 10);
365 return -EINVAL; 367 return -EINVAL;
366 } 368 }
367 369
368 rv = svga_check_timings (&vt8623_timing_regs, var, info->node); 370 rv = svga_check_timings (&vt8623_timing_regs, var, info->node);
369 if (rv < 0) 371 if (rv < 0)
370 { 372 {
371 printk(KERN_ERR "fb%d: invalid timings requested\n", info->node); 373 fb_err(info, "invalid timings requested\n");
372 return rv; 374 return rv;
373 } 375 }
374 376
@@ -474,32 +476,32 @@ static int vt8623fb_set_par(struct fb_info *info)
474 mode = svga_match_format(vt8623fb_formats, &(info->var), &(info->fix)); 476 mode = svga_match_format(vt8623fb_formats, &(info->var), &(info->fix));
475 switch (mode) { 477 switch (mode) {
476 case 0: 478 case 0:
477 pr_debug("fb%d: text mode\n", info->node); 479 fb_dbg(info, "text mode\n");
478 svga_set_textmode_vga_regs(par->state.vgabase); 480 svga_set_textmode_vga_regs(par->state.vgabase);
479 svga_wseq_mask(par->state.vgabase, 0x15, 0x00, 0xFE); 481 svga_wseq_mask(par->state.vgabase, 0x15, 0x00, 0xFE);
480 svga_wcrt_mask(par->state.vgabase, 0x11, 0x60, 0x70); 482 svga_wcrt_mask(par->state.vgabase, 0x11, 0x60, 0x70);
481 break; 483 break;
482 case 1: 484 case 1:
483 pr_debug("fb%d: 4 bit pseudocolor\n", info->node); 485 fb_dbg(info, "4 bit pseudocolor\n");
484 vga_wgfx(par->state.vgabase, VGA_GFX_MODE, 0x40); 486 vga_wgfx(par->state.vgabase, VGA_GFX_MODE, 0x40);
485 svga_wseq_mask(par->state.vgabase, 0x15, 0x20, 0xFE); 487 svga_wseq_mask(par->state.vgabase, 0x15, 0x20, 0xFE);
486 svga_wcrt_mask(par->state.vgabase, 0x11, 0x00, 0x70); 488 svga_wcrt_mask(par->state.vgabase, 0x11, 0x00, 0x70);
487 break; 489 break;
488 case 2: 490 case 2:
489 pr_debug("fb%d: 4 bit pseudocolor, planar\n", info->node); 491 fb_dbg(info, "4 bit pseudocolor, planar\n");
490 svga_wseq_mask(par->state.vgabase, 0x15, 0x00, 0xFE); 492 svga_wseq_mask(par->state.vgabase, 0x15, 0x00, 0xFE);
491 svga_wcrt_mask(par->state.vgabase, 0x11, 0x00, 0x70); 493 svga_wcrt_mask(par->state.vgabase, 0x11, 0x00, 0x70);
492 break; 494 break;
493 case 3: 495 case 3:
494 pr_debug("fb%d: 8 bit pseudocolor\n", info->node); 496 fb_dbg(info, "8 bit pseudocolor\n");
495 svga_wseq_mask(par->state.vgabase, 0x15, 0x22, 0xFE); 497 svga_wseq_mask(par->state.vgabase, 0x15, 0x22, 0xFE);
496 break; 498 break;
497 case 4: 499 case 4:
498 pr_debug("fb%d: 5/6/5 truecolor\n", info->node); 500 fb_dbg(info, "5/6/5 truecolor\n");
499 svga_wseq_mask(par->state.vgabase, 0x15, 0xB6, 0xFE); 501 svga_wseq_mask(par->state.vgabase, 0x15, 0xB6, 0xFE);
500 break; 502 break;
501 case 5: 503 case 5:
502 pr_debug("fb%d: 8/8/8 truecolor\n", info->node); 504 fb_dbg(info, "8/8/8 truecolor\n");
503 svga_wseq_mask(par->state.vgabase, 0x15, 0xAE, 0xFE); 505 svga_wseq_mask(par->state.vgabase, 0x15, 0xAE, 0xFE);
504 break; 506 break;
505 default: 507 default:
@@ -584,27 +586,27 @@ static int vt8623fb_blank(int blank_mode, struct fb_info *info)
584 586
585 switch (blank_mode) { 587 switch (blank_mode) {
586 case FB_BLANK_UNBLANK: 588 case FB_BLANK_UNBLANK:
587 pr_debug("fb%d: unblank\n", info->node); 589 fb_dbg(info, "unblank\n");
588 svga_wcrt_mask(par->state.vgabase, 0x36, 0x00, 0x30); 590 svga_wcrt_mask(par->state.vgabase, 0x36, 0x00, 0x30);
589 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20); 591 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20);
590 break; 592 break;
591 case FB_BLANK_NORMAL: 593 case FB_BLANK_NORMAL:
592 pr_debug("fb%d: blank\n", info->node); 594 fb_dbg(info, "blank\n");
593 svga_wcrt_mask(par->state.vgabase, 0x36, 0x00, 0x30); 595 svga_wcrt_mask(par->state.vgabase, 0x36, 0x00, 0x30);
594 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 596 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
595 break; 597 break;
596 case FB_BLANK_HSYNC_SUSPEND: 598 case FB_BLANK_HSYNC_SUSPEND:
597 pr_debug("fb%d: DPMS standby (hsync off)\n", info->node); 599 fb_dbg(info, "DPMS standby (hsync off)\n");
598 svga_wcrt_mask(par->state.vgabase, 0x36, 0x10, 0x30); 600 svga_wcrt_mask(par->state.vgabase, 0x36, 0x10, 0x30);
599 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 601 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
600 break; 602 break;
601 case FB_BLANK_VSYNC_SUSPEND: 603 case FB_BLANK_VSYNC_SUSPEND:
602 pr_debug("fb%d: DPMS suspend (vsync off)\n", info->node); 604 fb_dbg(info, "DPMS suspend (vsync off)\n");
603 svga_wcrt_mask(par->state.vgabase, 0x36, 0x20, 0x30); 605 svga_wcrt_mask(par->state.vgabase, 0x36, 0x20, 0x30);
604 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 606 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
605 break; 607 break;
606 case FB_BLANK_POWERDOWN: 608 case FB_BLANK_POWERDOWN:
607 pr_debug("fb%d: DPMS off (no sync)\n", info->node); 609 fb_dbg(info, "DPMS off (no sync)\n");
608 svga_wcrt_mask(par->state.vgabase, 0x36, 0x30, 0x30); 610 svga_wcrt_mask(par->state.vgabase, 0x36, 0x30, 0x30);
609 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20); 611 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
610 break; 612 break;
@@ -769,12 +771,12 @@ static int vt8623_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
769 771
770 rc = register_framebuffer(info); 772 rc = register_framebuffer(info);
771 if (rc < 0) { 773 if (rc < 0) {
772 dev_err(info->device, "cannot register framebugger\n"); 774 dev_err(info->device, "cannot register framebuffer\n");
773 goto err_reg_fb; 775 goto err_reg_fb;
774 } 776 }
775 777
776 printk(KERN_INFO "fb%d: %s on %s, %d MB RAM\n", info->node, info->fix.id, 778 fb_info(info, "%s on %s, %d MB RAM\n",
777 pci_name(dev), info->fix.smem_len >> 20); 779 info->fix.id, pci_name(dev), info->fix.smem_len >> 20);
778 780
779 /* Record a reference to the driver data */ 781 /* Record a reference to the driver data */
780 pci_set_drvdata(dev, info); 782 pci_set_drvdata(dev, info);
diff --git a/drivers/video/w100fb.c b/drivers/video/w100fb.c
index 2a0437a6d838..10951c82f6ed 100644
--- a/drivers/video/w100fb.c
+++ b/drivers/video/w100fb.c
@@ -761,10 +761,9 @@ int w100fb_probe(struct platform_device *pdev)
761 err |= device_create_file(&pdev->dev, &dev_attr_flip); 761 err |= device_create_file(&pdev->dev, &dev_attr_flip);
762 762
763 if (err != 0) 763 if (err != 0)
764 printk(KERN_WARNING "fb%d: failed to register attributes (%d)\n", 764 fb_warn(info, "failed to register attributes (%d)\n", err);
765 info->node, err);
766 765
767 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, info->fix.id); 766 fb_info(info, "%s frame buffer device\n", info->fix.id);
768 return 0; 767 return 0;
769out: 768out:
770 if (info) { 769 if (info) {
diff --git a/drivers/video/wm8505fb.c b/drivers/video/wm8505fb.c
index 2bf618037b13..537d199612af 100644
--- a/drivers/video/wm8505fb.c
+++ b/drivers/video/wm8505fb.c
@@ -372,14 +372,12 @@ static int wm8505fb_probe(struct platform_device *pdev)
372 } 372 }
373 373
374 ret = device_create_file(&pdev->dev, &dev_attr_contrast); 374 ret = device_create_file(&pdev->dev, &dev_attr_contrast);
375 if (ret < 0) { 375 if (ret < 0)
376 printk(KERN_WARNING "fb%d: failed to register attributes (%d)\n", 376 fb_warn(&fbi->fb, "failed to register attributes (%d)\n", ret);
377 fbi->fb.node, ret);
378 }
379 377
380 printk(KERN_INFO "fb%d: %s frame buffer at 0x%lx-0x%lx\n", 378 fb_info(&fbi->fb, "%s frame buffer at 0x%lx-0x%lx\n",
381 fbi->fb.node, fbi->fb.fix.id, fbi->fb.fix.smem_start, 379 fbi->fb.fix.id, fbi->fb.fix.smem_start,
382 fbi->fb.fix.smem_start + fbi->fb.fix.smem_len - 1); 380 fbi->fb.fix.smem_start + fbi->fb.fix.smem_len - 1);
383 381
384 return 0; 382 return 0;
385} 383}