Commit be05e207 authored by Thomas Zimmermann's avatar Thomas Zimmermann

fbdev/ep93xx-fb: Output messages with fb_info() and fb_err()

Fix cases were output helpers are called with struct fb_info.dev.
Use fb_info() and fb_err() instead.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-14-tzimmermann@suse.de
parent 9aee7f04
...@@ -436,7 +436,7 @@ static int ep93xxfb_alloc_videomem(struct fb_info *info) ...@@ -436,7 +436,7 @@ static int ep93xxfb_alloc_videomem(struct fb_info *info)
* least. * least.
*/ */
if (check_screenpage_bug && phys_addr & (1 << 27)) { if (check_screenpage_bug && phys_addr & (1 << 27)) {
dev_err(info->dev, "ep93xx framebuffer bug. phys addr (0x%x) " fb_err(info, "ep93xx framebuffer bug. phys addr (0x%x) "
"has bit 27 set: cannot init framebuffer\n", "has bit 27 set: cannot init framebuffer\n",
phys_addr); phys_addr);
...@@ -525,7 +525,7 @@ static int ep93xxfb_probe(struct platform_device *pdev) ...@@ -525,7 +525,7 @@ static int ep93xxfb_probe(struct platform_device *pdev)
err = fb_find_mode(&info->var, info, video_mode, err = fb_find_mode(&info->var, info, video_mode,
NULL, 0, NULL, 16); NULL, 0, NULL, 16);
if (err == 0) { if (err == 0) {
dev_err(info->dev, "No suitable video mode found\n"); fb_err(info, "No suitable video mode found\n");
err = -EINVAL; err = -EINVAL;
goto failed_resource; goto failed_resource;
} }
...@@ -554,7 +554,7 @@ static int ep93xxfb_probe(struct platform_device *pdev) ...@@ -554,7 +554,7 @@ static int ep93xxfb_probe(struct platform_device *pdev)
if (err) if (err)
goto failed_framebuffer; goto failed_framebuffer;
dev_info(info->dev, "registered. Mode = %dx%d-%d\n", fb_info(info, "registered. Mode = %dx%d-%d\n",
info->var.xres, info->var.yres, info->var.bits_per_pixel); info->var.xres, info->var.yres, info->var.bits_per_pixel);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment