drm: kill gem_free_object_unlocked driver callback
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Aug 2010 20:53:33 +0000 (22:53 +0200)
committerDave Airlie <airlied@redhat.com>
Sun, 29 Aug 2010 23:38:18 +0000 (09:38 +1000)
Not used by any current driver.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
include/drm/drmP.h

index bf92d07510df740d856c173e7dcce292659fe6f7..cff7317d3830e5f8df8c58ef7c8e61cc37301ccc 100644 (file)
@@ -474,9 +474,7 @@ drm_gem_object_free_unlocked(struct kref *kref)
        struct drm_gem_object *obj = (struct drm_gem_object *) kref;
        struct drm_device *dev = obj->dev;
 
-       if (dev->driver->gem_free_object_unlocked != NULL)
-               dev->driver->gem_free_object_unlocked(obj);
-       else if (dev->driver->gem_free_object != NULL) {
+       if (dev->driver->gem_free_object != NULL) {
                mutex_lock(&dev->struct_mutex);
                dev->driver->gem_free_object(obj);
                mutex_unlock(&dev->struct_mutex);
index d5a2b8869246a77f2e58207ffc217e406169463d..6dbdbf45cd1af3c6c15cc8249d5daa3cc9e6d0f9 100644 (file)
@@ -802,7 +802,6 @@ struct drm_driver {
         */
        int (*gem_init_object) (struct drm_gem_object *obj);
        void (*gem_free_object) (struct drm_gem_object *obj);
-       void (*gem_free_object_unlocked) (struct drm_gem_object *obj);
 
        /* vga arb irq handler */
        void (*vgaarb_irq)(struct drm_device *dev, bool state);