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>
This commit is contained in:
Daocai.yang 2017-07-07 11:52:24 +08:00
parent 9023a992a8
commit 7d73d6b642

View 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);