diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2014-01-06 08:17:57 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-01-17 03:57:40 -0500 |
commit | 18dd44d89f94ebb6b68af93df462683bcfa6a7e5 (patch) | |
tree | 39fb0baecb1df66a2f573897e3db5a57fe1d2422 | |
parent | 15b61768571cee37e93ff57247e82220928f6223 (diff) |
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: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/mxsfb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 27197a8048c0..d11c35ce2b00 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c | |||
@@ -297,7 +297,7 @@ static int mxsfb_check_var(struct fb_var_screeninfo *var, | |||
297 | } | 297 | } |
298 | break; | 298 | break; |
299 | default: | 299 | default: |
300 | pr_debug("Unsupported colour depth: %u\n", var->bits_per_pixel); | 300 | pr_err("Unsupported colour depth: %u\n", var->bits_per_pixel); |
301 | return -EINVAL; | 301 | return -EINVAL; |
302 | } | 302 | } |
303 | 303 | ||
@@ -426,7 +426,7 @@ static int mxsfb_set_par(struct fb_info *fb_info) | |||
426 | ctrl |= CTRL_SET_WORD_LENGTH(3); | 426 | ctrl |= CTRL_SET_WORD_LENGTH(3); |
427 | switch (host->ld_intf_width) { | 427 | switch (host->ld_intf_width) { |
428 | case STMLCDIF_8BIT: | 428 | case STMLCDIF_8BIT: |
429 | dev_dbg(&host->pdev->dev, | 429 | dev_err(&host->pdev->dev, |
430 | "Unsupported LCD bus width mapping\n"); | 430 | "Unsupported LCD bus width mapping\n"); |
431 | return -EINVAL; | 431 | return -EINVAL; |
432 | case STMLCDIF_16BIT: | 432 | case STMLCDIF_16BIT: |
@@ -439,7 +439,7 @@ static int mxsfb_set_par(struct fb_info *fb_info) | |||
439 | writel(CTRL1_SET_BYTE_PACKAGING(0x7), host->base + LCDC_CTRL1); | 439 | writel(CTRL1_SET_BYTE_PACKAGING(0x7), host->base + LCDC_CTRL1); |
440 | break; | 440 | break; |
441 | default: | 441 | default: |
442 | dev_dbg(&host->pdev->dev, "Unhandled color depth of %u\n", | 442 | dev_err(&host->pdev->dev, "Unhandled color depth of %u\n", |
443 | fb_info->var.bits_per_pixel); | 443 | fb_info->var.bits_per_pixel); |
444 | return -EINVAL; | 444 | return -EINVAL; |
445 | } | 445 | } |