diff options
| author | Lloyd Atkinson <latkinso@codeaurora.org> | 2016-05-30 13:23:48 -0400 |
|---|---|---|
| committer | Dhaval Patel <pdhaval@codeaurora.org> | 2016-08-01 11:58:08 -0700 |
| commit | 52f996dcb649c2eb1c0e2284a0571b03bdf89b20 (patch) | |
| tree | ddc32933c323a3cf138fc27d5f4291a5d0f4fcf9 | |
| parent | ad84d148e1219ff4d6299847ec29d7ab70616e9f (diff) | |
drm/msm/sde: consolidate SDE error logging on DRM standard calls
Replace instances of pr_err and dev_err with DRM_ERROR.
Change-Id: I2ed06765ba4e980ee56c0c249f2aca997a7bf1b6
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_crtc.c | 8 | ||||
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_plane.c | 15 |
2 files changed, 10 insertions, 13 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_crtc.c b/drivers/gpu/drm/msm/sde/sde_crtc.c index 786dd63a7a22..cadf87d981b5 100644 --- a/drivers/gpu/drm/msm/sde/sde_crtc.c +++ b/drivers/gpu/drm/msm/sde/sde_crtc.c @@ -144,7 +144,6 @@ static void sde_crtc_mode_set_nofb(struct drm_crtc *crtc) { struct sde_crtc *sde_crtc = to_sde_crtc(crtc); struct sde_crtc_mixer *mixer = sde_crtc->mixer; - struct drm_device *dev = crtc->dev; struct sde_hw_mixer *lm; unsigned long flags; struct drm_display_mode *mode; @@ -170,7 +169,7 @@ static void sde_crtc_mode_set_nofb(struct drm_crtc *crtc) (sde_crtc->num_mixers == 0)) { rc = sde_crtc_reserve_hw_resources(crtc, sde_crtc->encoder); if (rc) { - dev_err(dev->dev, " error reserving HW resource for this CRTC\n"); + DRM_ERROR("error reserving HW resource for CRTC\n"); return; } } @@ -576,7 +575,6 @@ static int sde_crtc_atomic_check(struct drm_crtc *crtc, struct sde_crtc *sde_crtc = to_sde_crtc(crtc); struct sde_kms *sde_kms = get_kms(crtc); struct drm_plane *plane; - struct drm_device *dev = crtc->dev; struct plane_state pstates[SDE_STAGE_MAX]; int max_stages = CRTC_HW_MIXER_MAXSTAGES(sde_kms->catalog, 0); int cnt = 0, i; @@ -590,7 +588,7 @@ static int sde_crtc_atomic_check(struct drm_crtc *crtc, struct drm_plane_state *pstate; if (cnt >= (max_stages)) { - dev_err(dev->dev, "too many planes!\n"); + DRM_ERROR("too many planes!\n"); return -EINVAL; } @@ -703,7 +701,7 @@ struct drm_crtc *sde_crtc_init(struct drm_device *dev, rc = sde_crtc_reserve_hw_resources(crtc, encoder); if (rc) { - dev_err(dev->dev, " error reserving HW resource for this CRTC\n"); + DRM_ERROR(" error reserving HW resource for this CRTC\n"); return ERR_PTR(-EINVAL); } diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c index 6dbf34687f0a..395967eb92b1 100644 --- a/drivers/gpu/drm/msm/sde/sde_plane.c +++ b/drivers/gpu/drm/msm/sde/sde_plane.c @@ -434,8 +434,7 @@ static int sde_plane_atomic_check(struct drm_plane *plane, if (MDP_FORMAT_IS_YUV(format) && (!(psde->features & SDE_SSPP_SCALER) || !(psde->features & BIT(SDE_SSPP_CSC)))) { - dev_err(plane->dev->dev, - "Pipe doesn't support YUV\n"); + DRM_ERROR("Pipe doesn't support YUV\n"); return -EINVAL; } @@ -443,8 +442,8 @@ static int sde_plane_atomic_check(struct drm_plane *plane, if (!(psde->features & SDE_SSPP_SCALER) && (((state->src_w >> 16) != state->crtc_w) || ((state->src_h >> 16) != state->crtc_h))) { - dev_err(plane->dev->dev, - "Pipe doesn't support scaling (%dx%d -> %dx%d)\n", + DRM_ERROR( + "Unsupported Pipe scaling (%dx%d -> %dx%d)\n", state->src_w >> 16, state->src_h >> 16, state->crtc_w, state->crtc_h); @@ -576,7 +575,7 @@ static int sde_plane_atomic_set_property(struct drm_plane *plane, blob = drm_property_lookup_blob(dev, (uint32_t)val); if (!blob) { - dev_err(dev->dev, "Blob not found\n"); + DRM_ERROR("Blob not found\n"); val = 0; } else { val = blob->base.id; @@ -598,7 +597,7 @@ static int sde_plane_atomic_set_property(struct drm_plane *plane, } if (ret == -EINVAL) - dev_err(dev->dev, "Invalid property set\n"); + DRM_ERROR("Invalid property set\n"); return ret; } @@ -637,7 +636,7 @@ static int sde_plane_atomic_get_property(struct drm_plane *plane, } if (ret == -EINVAL) - dev_err(dev->dev, "Invalid property get\n"); + DRM_ERROR("Invalid property get\n"); return ret; } @@ -894,7 +893,7 @@ struct drm_plane *sde_plane_init(struct drm_device *dev, return plane; fail: - pr_err("%s: Plane creation failed\n", __func__); + DRM_ERROR("Plane creation failed\n"); if (plane) sde_plane_destroy(plane); exit: |
