diff --git a/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c index 0ea70b8fd743..ff483089b26b 100644 --- a/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c +++ b/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c @@ -915,7 +915,7 @@ struct ipu_plane *ipu_plane_init(struct drm_device *dev, struct ipu_soc *ipu, type, NULL); if (IS_ERR(ipu_plane)) { DRM_ERROR("failed to allocate and initialize %s plane\n", - zpos ? "overlay" : "primary"); + (type == DRM_PLANE_TYPE_PRIMARY) ? "primary" : "overlay"); return ipu_plane; } @@ -949,7 +949,7 @@ struct ipu_plane *ipu_plane_init(struct drm_device *dev, struct ipu_soc *ipu, ret = ipu_plane_get_resources(dev, ipu_plane); if (ret) { DRM_ERROR("failed to get %s plane resources: %pe\n", - zpos ? "overlay" : "primary", &ret); + (type == DRM_PLANE_TYPE_PRIMARY) ? "primary" : "overlay", &ret); return ERR_PTR(ret); }