Skip to content

Commit

Permalink
drm/fimd: use DRM_ERROR instead of DRM_INFO in error case
Browse files Browse the repository at this point in the history
This patch makes error messages to be printed out using DRM_ERROR
instead of DRM_INFO.

Signed-off-by: Inki Dae <[email protected]>
  • Loading branch information
daeinki committed Apr 24, 2019
1 parent f9af3f8 commit e593053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/exynos/exynos_drm_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc,
u32 clkdiv;

if (mode->clock == 0) {
DRM_INFO("Mode has zero clock value.\n");
DRM_ERROR("Mode has zero clock value.\n");
return -EINVAL;
}

Expand All @@ -416,15 +416,15 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc,

lcd_rate = clk_get_rate(ctx->lcd_clk);
if (2 * lcd_rate < ideal_clk) {
DRM_INFO("sclk_fimd clock too low(%lu) for requested pixel clock(%lu)\n",
DRM_ERROR("sclk_fimd clock too low(%lu) for requested pixel clock(%lu)\n",
lcd_rate, ideal_clk);
return -EINVAL;
}

/* Find the clock divider value that gets us closest to ideal_clk */
clkdiv = DIV_ROUND_CLOSEST(lcd_rate, ideal_clk);
if (clkdiv >= 0x200) {
DRM_INFO("requested pixel clock(%lu) too low\n", ideal_clk);
DRM_ERROR("requested pixel clock(%lu) too low\n", ideal_clk);
return -EINVAL;
}

Expand Down

0 comments on commit e593053

Please sign in to comment.