OSDN Git Service

msm: sde: remove boot warning of drm AD properties
authorDaocai.yang <c_daocai@qti.qualcomm.com>
Fri, 7 Jul 2017 03:52:24 +0000 (11:52 +0800)
committerDaocai.yang <c_daocai@qti.qualcomm.com>
Mon, 24 Jul 2017 07:44:04 +0000 (15:44 +0800)
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>
drivers/gpu/drm/msm/sde/sde_color_processing.c

index ef74928..a0f6b5c 100644 (file)
@@ -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);