Skip to content

Commit b8a65b2

Browse files
Vivek BalachandharTNhdeller
authored andcommitted
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>
1 parent e9a6fb0 commit b8a65b2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/video/fbdev/vga16fb.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ static int vga16fb_probe(struct platform_device *dev)
13191319
if (ret)
13201320
return ret;
13211321

1322-
printk(KERN_DEBUG "vga16fb: initializing\n");
1322+
dev_dbg(&dev->dev, "initializing\n");
13231323
info = framebuffer_alloc(sizeof(struct vga16fb_par), &dev->dev);
13241324

13251325
if (!info) {
@@ -1331,12 +1331,12 @@ static int vga16fb_probe(struct platform_device *dev)
13311331
info->screen_base = (void __iomem *)VGA_MAP_MEM(VGA_FB_PHYS_BASE, 0);
13321332

13331333
if (!info->screen_base) {
1334-
printk(KERN_ERR "vga16fb: unable to map device\n");
1334+
dev_err(&dev->dev, "unable to map device\n");
13351335
ret = -ENOMEM;
13361336
goto err_ioremap;
13371337
}
13381338

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);
13401340
par = info->par;
13411341

13421342
par->isVGA = screen_info_video_type(si) == VIDEO_TYPE_VGAC;
@@ -1364,13 +1364,13 @@ static int vga16fb_probe(struct platform_device *dev)
13641364
i = (info->var.bits_per_pixel == 8) ? 256 : 16;
13651365
ret = fb_alloc_cmap(&info->cmap, i, 0);
13661366
if (ret) {
1367-
printk(KERN_ERR "vga16fb: unable to allocate colormap\n");
1367+
dev_err(&dev->dev, "unable to allocate colormap\n");
13681368
ret = -ENOMEM;
13691369
goto err_alloc_cmap;
13701370
}
13711371

13721372
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");
13741374
ret = -EINVAL;
13751375
goto err_check_var;
13761376
}
@@ -1381,7 +1381,7 @@ static int vga16fb_probe(struct platform_device *dev)
13811381
if (ret)
13821382
goto err_check_var;
13831383
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");
13851385
ret = -EINVAL;
13861386
goto err_check_var;
13871387
}

0 commit comments

Comments
 (0)