diff options
Diffstat (limited to 'drivers/gpu/drm/drm_mode_object.c')
-rw-r--r-- | drivers/gpu/drm/drm_mode_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_mode_object.c b/drivers/gpu/drm/drm_mode_object.c index 9f17085b1fdd..c6885a4911c0 100644 --- a/drivers/gpu/drm/drm_mode_object.c +++ b/drivers/gpu/drm/drm_mode_object.c | |||
@@ -159,7 +159,7 @@ EXPORT_SYMBOL(drm_mode_object_find); | |||
159 | void drm_mode_object_unreference(struct drm_mode_object *obj) | 159 | void drm_mode_object_unreference(struct drm_mode_object *obj) |
160 | { | 160 | { |
161 | if (obj->free_cb) { | 161 | if (obj->free_cb) { |
162 | DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, atomic_read(&obj->refcount.refcount)); | 162 | DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount)); |
163 | kref_put(&obj->refcount, obj->free_cb); | 163 | kref_put(&obj->refcount, obj->free_cb); |
164 | } | 164 | } |
165 | } | 165 | } |
@@ -176,7 +176,7 @@ EXPORT_SYMBOL(drm_mode_object_unreference); | |||
176 | void drm_mode_object_reference(struct drm_mode_object *obj) | 176 | void drm_mode_object_reference(struct drm_mode_object *obj) |
177 | { | 177 | { |
178 | if (obj->free_cb) { | 178 | if (obj->free_cb) { |
179 | DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, atomic_read(&obj->refcount.refcount)); | 179 | DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount)); |
180 | kref_get(&obj->refcount); | 180 | kref_get(&obj->refcount); |
181 | } | 181 | } |
182 | } | 182 | } |