Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbdev: atafb: Modernize printing of kernel messages

Now the driver has been converted to a platform driver, the legacy
printk() calls without any log level can be replaced by proper dev_*()
calls.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michael Schmitz <schmitzmic@gmail.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Geert Uytterhoeven and committed by
Bartlomiej Zolnierkiewicz
cbb91d5d 80cf9635

+13 -12
+13 -12
drivers/video/fbdev/atafb.c
··· 3083 3083 if (fb_get_options("atafb", &option)) 3084 3084 return -ENODEV; 3085 3085 atafb_setup(option); 3086 - printk("atafb_init: start\n"); 3086 + dev_dbg(&pdev->dev, "%s: start\n", __func__); 3087 3087 3088 3088 do { 3089 3089 #ifdef ATAFB_EXT 3090 3090 if (external_addr) { 3091 - printk("atafb_init: initializing external hw\n"); 3091 + dev_dbg(&pdev->dev, "initializing external hw\n"); 3092 3092 fbhw = &ext_switch; 3093 3093 atafb_ops.fb_setcolreg = &ext_setcolreg; 3094 3094 defmode = DEFMODE_EXT; ··· 3097 3097 #endif 3098 3098 #ifdef ATAFB_TT 3099 3099 if (ATARIHW_PRESENT(TT_SHIFTER)) { 3100 - printk("atafb_init: initializing TT hw\n"); 3100 + dev_dbg(&pdev->dev, "initializing TT hw\n"); 3101 3101 fbhw = &tt_switch; 3102 3102 atafb_ops.fb_setcolreg = &tt_setcolreg; 3103 3103 defmode = DEFMODE_TT; ··· 3106 3106 #endif 3107 3107 #ifdef ATAFB_FALCON 3108 3108 if (ATARIHW_PRESENT(VIDEL_SHIFTER)) { 3109 - printk("atafb_init: initializing Falcon hw\n"); 3109 + dev_dbg(&pdev->dev, "initializing Falcon hw\n"); 3110 3110 fbhw = &falcon_switch; 3111 3111 atafb_ops.fb_setcolreg = &falcon_setcolreg; 3112 3112 error = request_irq(IRQ_AUTO_4, falcon_vbl_switcher, 0, ··· 3121 3121 #ifdef ATAFB_STE 3122 3122 if (ATARIHW_PRESENT(STND_SHIFTER) || 3123 3123 ATARIHW_PRESENT(EXTD_SHIFTER)) { 3124 - printk("atafb_init: initializing ST/E hw\n"); 3124 + dev_dbg(&pdev->dev, "initializing ST/E hw\n"); 3125 3125 fbhw = &st_switch; 3126 3126 atafb_ops.fb_setcolreg = &stste_setcolreg; 3127 3127 defmode = DEFMODE_STE; ··· 3129 3129 } 3130 3130 fbhw = &st_switch; 3131 3131 atafb_ops.fb_setcolreg = &stste_setcolreg; 3132 - printk("Cannot determine video hardware; defaulting to ST(e)\n"); 3132 + dev_warn(&pdev->dev, 3133 + "Cannot determine video hardware; defaulting to ST(e)\n"); 3133 3134 #else /* ATAFB_STE */ 3134 3135 /* no default driver included */ 3135 3136 /* Nobody will ever see this message :-) */ ··· 3170 3169 kernel_set_cachemode(screen_base, screen_len, 3171 3170 IOMAP_WRITETHROUGH); 3172 3171 } 3173 - printk("atafb: phys_screen_base %lx screen_len %d\n", 3174 - phys_screen_base, screen_len); 3172 + dev_info(&pdev->dev, "phys_screen_base %lx screen_len %d\n", 3173 + phys_screen_base, screen_len); 3175 3174 #ifdef ATAFB_EXT 3176 3175 } else { 3177 3176 /* Map the video memory (physical address given) to somewhere ··· 3218 3217 fb_alloc_cmap(&(fb_info.cmap), 1 << fb_info.var.bits_per_pixel, 0); 3219 3218 3220 3219 3221 - printk("Determined %dx%d, depth %d\n", 3222 - fb_info.var.xres, fb_info.var.yres, fb_info.var.bits_per_pixel); 3220 + dev_info(&pdev->dev, "Determined %dx%d, depth %d\n", fb_info.var.xres, 3221 + fb_info.var.yres, fb_info.var.bits_per_pixel); 3223 3222 if ((fb_info.var.xres != fb_info.var.xres_virtual) || 3224 3223 (fb_info.var.yres != fb_info.var.yres_virtual)) 3225 - printk(" virtual %dx%d\n", fb_info.var.xres_virtual, 3226 - fb_info.var.yres_virtual); 3224 + dev_info(&pdev->dev, " virtual %dx%d\n", 3225 + fb_info.var.xres_virtual, fb_info.var.yres_virtual); 3227 3226 3228 3227 if (register_framebuffer(&fb_info) < 0) { 3229 3228 #ifdef ATAFB_EXT