Commit 18dd44d8 authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Tomi Valkeinen

video: mxsfb: convert pr_debug()/dev_dbg() to pr_err()/dev_err() for error messages

Make the messages that are printed in case of fatal errors actually
visible to the user without having to recompile the driver with
debugging enabled.
Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 15b61768
...@@ -297,7 +297,7 @@ static int mxsfb_check_var(struct fb_var_screeninfo *var, ...@@ -297,7 +297,7 @@ static int mxsfb_check_var(struct fb_var_screeninfo *var,
} }
break; break;
default: default:
pr_debug("Unsupported colour depth: %u\n", var->bits_per_pixel); pr_err("Unsupported colour depth: %u\n", var->bits_per_pixel);
return -EINVAL; return -EINVAL;
} }
...@@ -426,7 +426,7 @@ static int mxsfb_set_par(struct fb_info *fb_info) ...@@ -426,7 +426,7 @@ static int mxsfb_set_par(struct fb_info *fb_info)
ctrl |= CTRL_SET_WORD_LENGTH(3); ctrl |= CTRL_SET_WORD_LENGTH(3);
switch (host->ld_intf_width) { switch (host->ld_intf_width) {
case STMLCDIF_8BIT: case STMLCDIF_8BIT:
dev_dbg(&host->pdev->dev, dev_err(&host->pdev->dev,
"Unsupported LCD bus width mapping\n"); "Unsupported LCD bus width mapping\n");
return -EINVAL; return -EINVAL;
case STMLCDIF_16BIT: case STMLCDIF_16BIT:
...@@ -439,7 +439,7 @@ static int mxsfb_set_par(struct fb_info *fb_info) ...@@ -439,7 +439,7 @@ static int mxsfb_set_par(struct fb_info *fb_info)
writel(CTRL1_SET_BYTE_PACKAGING(0x7), host->base + LCDC_CTRL1); writel(CTRL1_SET_BYTE_PACKAGING(0x7), host->base + LCDC_CTRL1);
break; break;
default: default:
dev_dbg(&host->pdev->dev, "Unhandled color depth of %u\n", dev_err(&host->pdev->dev, "Unhandled color depth of %u\n",
fb_info->var.bits_per_pixel); fb_info->var.bits_per_pixel);
return -EINVAL; return -EINVAL;
} }
......
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