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

fbdev: vga16fb: replace printk() with dev_*() in probe

Use dev_*() with &dev->dev and drop the hard-coded prefix. Keep
original severities. No functional change.

Signed-off-by: Vivek BalachandharTN <vivek.balachandhar@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Vivek BalachandharTN and committed by
Helge Deller
b8a65b2d e9a6fb0b

+6 -6
+6 -6
drivers/video/fbdev/vga16fb.c
··· 1319 1319 if (ret) 1320 1320 return ret; 1321 1321 1322 - printk(KERN_DEBUG "vga16fb: initializing\n"); 1322 + dev_dbg(&dev->dev, "initializing\n"); 1323 1323 info = framebuffer_alloc(sizeof(struct vga16fb_par), &dev->dev); 1324 1324 1325 1325 if (!info) { ··· 1331 1331 info->screen_base = (void __iomem *)VGA_MAP_MEM(VGA_FB_PHYS_BASE, 0); 1332 1332 1333 1333 if (!info->screen_base) { 1334 - printk(KERN_ERR "vga16fb: unable to map device\n"); 1334 + dev_err(&dev->dev, "unable to map device\n"); 1335 1335 ret = -ENOMEM; 1336 1336 goto err_ioremap; 1337 1337 } 1338 1338 1339 - printk(KERN_INFO "vga16fb: mapped to 0x%p\n", info->screen_base); 1339 + dev_info(&dev->dev, "mapped to 0x%p\n", info->screen_base); 1340 1340 par = info->par; 1341 1341 1342 1342 par->isVGA = screen_info_video_type(si) == VIDEO_TYPE_VGAC; ··· 1364 1364 i = (info->var.bits_per_pixel == 8) ? 256 : 16; 1365 1365 ret = fb_alloc_cmap(&info->cmap, i, 0); 1366 1366 if (ret) { 1367 - printk(KERN_ERR "vga16fb: unable to allocate colormap\n"); 1367 + dev_err(&dev->dev, "unable to allocate colormap\n"); 1368 1368 ret = -ENOMEM; 1369 1369 goto err_alloc_cmap; 1370 1370 } 1371 1371 1372 1372 if (vga16fb_check_var(&info->var, info)) { 1373 - printk(KERN_ERR "vga16fb: unable to validate variable\n"); 1373 + dev_err(&dev->dev, "unable to validate variable\n"); 1374 1374 ret = -EINVAL; 1375 1375 goto err_check_var; 1376 1376 } ··· 1381 1381 if (ret) 1382 1382 goto err_check_var; 1383 1383 if (register_framebuffer(info) < 0) { 1384 - printk(KERN_ERR "vga16fb: unable to register framebuffer\n"); 1384 + dev_err(&dev->dev, "unable to register framebuffer\n"); 1385 1385 ret = -EINVAL; 1386 1386 goto err_check_var; 1387 1387 }