summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDaocai.yang <c_daocai@qti.qualcomm.com>2017-07-07 11:52:24 +0800
committerDaocai.yang <c_daocai@qti.qualcomm.com>2017-07-24 15:44:04 +0800
commit7d73d6b64225884d4665f8c0656c69fe5de96532 (patch)
tree39dd31100c21b85ed301574dfeec5a97a6fd8bf6 /drivers/gpu
parent9023a992a898bf03eccc0c1bab50093259181557 (diff)
msm: sde: remove boot warning of drm AD properties
drm_property_create prints WARN_ON while passing parameter DRM_MODE_PROP_IMMUTABLE, so replace it with drm_property_create_range Change-Id: I48e02125f751c29c94bf9f734bff84352359c001 Signed-off-by: Daocai.yang <c_daocai@qti.qualcomm.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/msm/sde/sde_color_processing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_color_processing.c b/drivers/gpu/drm/msm/sde/sde_color_processing.c
index ef7492817983..a0f6b5c6a732 100644
--- a/drivers/gpu/drm/msm/sde/sde_color_processing.c
+++ b/drivers/gpu/drm/msm/sde/sde_color_processing.c
@@ -344,8 +344,8 @@ static void sde_cp_crtc_install_immutable_property(struct drm_crtc *crtc,
prop = priv->cp_property[feature];
if (!prop) {
- prop = drm_property_create(crtc->dev, DRM_MODE_PROP_IMMUTABLE,
- name, 0);
+ prop = drm_property_create_range(crtc->dev,
+ DRM_MODE_PROP_IMMUTABLE, name, 0, 1);
if (!prop) {
DRM_ERROR("property create failed: %s\n", name);
kfree(prop_node);