summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-07-16 07:11:56 (GMT)
committerInki Dae <inki.dae@samsung.com>2014-10-15 11:05:16 (GMT)
commit5cc97f2d7320e411d19533db8445aeef27286f5d (patch)
treec13dba8e83bf37befdabdd206af2a3d550f845f0
parentb7747be8900d6d6427c145bd474abcaaed9b708d (diff)
downloadlinux-3.10-5cc97f2d7320e411d19533db8445aeef27286f5d.zip
linux-3.10-5cc97f2d7320e411d19533db8445aeef27286f5d.tar.gz
linux-3.10-5cc97f2d7320e411d19533db8445aeef27286f5d.tar.bz2
drm/gem: remove drm_gem_object_handle_unreference
It's unused, everyone is using the _unlocked variant only. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
-rw-r--r--include/drm/drmP.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 3a73299..1128508 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1720,24 +1720,6 @@ drm_gem_object_handle_reference(struct drm_gem_object *obj)
}
static inline void
-drm_gem_object_handle_unreference(struct drm_gem_object *obj)
-{
- if (obj == NULL)
- return;
-
- if (atomic_read(&obj->handle_count) == 0)
- return;
- /*
- * Must bump handle count first as this may be the last
- * ref, in which case the object would disappear before we
- * checked for a name
- */
- if (atomic_dec_and_test(&obj->handle_count))
- drm_gem_object_handle_free(obj);
- drm_gem_object_unreference(obj);
-}
-
-static inline void
drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj)
{
if (obj == NULL)