]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gma500: Fix clashes with DRM updates
authorAlan Cox <alan@linux.intel.com>
Tue, 9 Aug 2011 13:30:37 +0000 (14:30 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Aug 2011 15:34:50 +0000 (08:34 -0700)
The private object support has migrated from gma500 into the DRM core,
remove our now clashing copy.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/staging/gma500/gem_glue.c
drivers/staging/gma500/gem_glue.h

index 779ac1a12d24909cf9940794934a5ed5f55dbd30..daac121206535cd8161a4e87520d21c0a173be20 100644 (file)
 #include <drm/drmP.h>
 #include <drm/drm.h>
 
-/**
- * Initialize an already allocated GEM object of the specified size with
- * no GEM provided backing store. Instead the caller is responsible for
- * backing the object and handling it.
- */
-int drm_gem_private_object_init(struct drm_device *dev,
-                       struct drm_gem_object *obj, size_t size)
-{
-       BUG_ON((size & (PAGE_SIZE - 1)) != 0);
-
-       obj->dev = dev;
-       obj->filp = NULL;
-
-       kref_init(&obj->refcount);
-       atomic_set(&obj->handle_count, 0);
-       obj->size = size;
-
-       return 0;
-}
-
 void drm_gem_object_release_wrap(struct drm_gem_object *obj)
 {
        /* Remove the list map if one is present */
@@ -51,8 +31,7 @@ void drm_gem_object_release_wrap(struct drm_gem_object *obj)
                kfree(list->map);
                list->map = NULL;
        }
-       if (obj->filp)
-               drm_gem_object_release(obj);
+       drm_gem_object_release(obj);
 }
 
 /**
index a0f2bc4e4ae709ad7cfd39944ebf41fbfda5393b..ce5ce30f74dbff75ea343c0936795311d8ae40fe 100644 (file)
@@ -1,4 +1,2 @@
 extern void drm_gem_object_release_wrap(struct drm_gem_object *obj);
-extern int drm_gem_private_object_init(struct drm_device *dev,
-                       struct drm_gem_object *obj, size_t size);
 extern int gem_create_mmap_offset(struct drm_gem_object *obj);