aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_mode_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_mode_object.c')
-rw-r--r--drivers/gpu/drm/drm_mode_object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_mode_object.c b/drivers/gpu/drm/drm_mode_object.c
index be8b754eaf60..cd9bc0ce9be0 100644
--- a/drivers/gpu/drm/drm_mode_object.c
+++ b/drivers/gpu/drm/drm_mode_object.c
@@ -38,7 +38,8 @@ int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj,
38 int ret; 38 int ret;
39 39
40 mutex_lock(&dev->mode_config.idr_mutex); 40 mutex_lock(&dev->mode_config.idr_mutex);
41 ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL, 1, 0, GFP_KERNEL); 41 ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL,
42 1, 0, GFP_KERNEL);
42 if (ret >= 0) { 43 if (ret >= 0) {
43 /* 44 /*
44 * Set up the object linking under the protection of the idr 45 * Set up the object linking under the protection of the idr