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>
diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c
index 6dbf346..395967e 100644
--- a/drivers/gpu/drm/msm/sde/sde_plane.c
+++ b/drivers/gpu/drm/msm/sde/sde_plane.c
@@ -434,8 +434,7 @@
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 @@
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 @@
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 @@
}
if (ret == -EINVAL)
- dev_err(dev->dev, "Invalid property set\n");
+ DRM_ERROR("Invalid property set\n");
return ret;
}
@@ -637,7 +636,7 @@
}
if (ret == -EINVAL)
- dev_err(dev->dev, "Invalid property get\n");
+ DRM_ERROR("Invalid property get\n");
return ret;
}
@@ -894,7 +893,7 @@
return plane;
fail:
- pr_err("%s: Plane creation failed\n", __func__);
+ DRM_ERROR("Plane creation failed\n");
if (plane)
sde_plane_destroy(plane);
exit: