diff options
Diffstat (limited to 'drivers')
33 files changed, 0 insertions, 119 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c index 32e270dc714e..5137f15dba19 100644 --- a/drivers/gpu/drm/ast/ast_drv.c +++ b/drivers/gpu/drm/ast/ast_drv.c | |||
@@ -211,7 +211,6 @@ static struct drm_driver driver = { | |||
211 | .minor = DRIVER_MINOR, | 211 | .minor = DRIVER_MINOR, |
212 | .patchlevel = DRIVER_PATCHLEVEL, | 212 | .patchlevel = DRIVER_PATCHLEVEL, |
213 | 213 | ||
214 | .gem_init_object = ast_gem_init_object, | ||
215 | .gem_free_object = ast_gem_free_object, | 214 | .gem_free_object = ast_gem_free_object, |
216 | .dumb_create = ast_dumb_create, | 215 | .dumb_create = ast_dumb_create, |
217 | .dumb_map_offset = ast_dumb_mmap_offset, | 216 | .dumb_map_offset = ast_dumb_mmap_offset, |
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h index 8492b68e873c..9833a1b1acc1 100644 --- a/drivers/gpu/drm/ast/ast_drv.h +++ b/drivers/gpu/drm/ast/ast_drv.h | |||
@@ -323,7 +323,6 @@ extern int ast_dumb_create(struct drm_file *file, | |||
323 | struct drm_device *dev, | 323 | struct drm_device *dev, |
324 | struct drm_mode_create_dumb *args); | 324 | struct drm_mode_create_dumb *args); |
325 | 325 | ||
326 | extern int ast_gem_init_object(struct drm_gem_object *obj); | ||
327 | extern void ast_gem_free_object(struct drm_gem_object *obj); | 326 | extern void ast_gem_free_object(struct drm_gem_object *obj); |
328 | extern int ast_dumb_mmap_offset(struct drm_file *file, | 327 | extern int ast_dumb_mmap_offset(struct drm_file *file, |
329 | struct drm_device *dev, | 328 | struct drm_device *dev, |
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index 7f6152d374ca..af0b868a9dfd 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c | |||
@@ -449,12 +449,6 @@ int ast_dumb_create(struct drm_file *file, | |||
449 | return 0; | 449 | return 0; |
450 | } | 450 | } |
451 | 451 | ||
452 | int ast_gem_init_object(struct drm_gem_object *obj) | ||
453 | { | ||
454 | BUG(); | ||
455 | return 0; | ||
456 | } | ||
457 | |||
458 | void ast_bo_unref(struct ast_bo **bo) | 452 | void ast_bo_unref(struct ast_bo **bo) |
459 | { | 453 | { |
460 | struct ttm_buffer_object *tbo; | 454 | struct ttm_buffer_object *tbo; |
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c index 138364d91782..953fc8aea69c 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.c +++ b/drivers/gpu/drm/cirrus/cirrus_drv.c | |||
@@ -97,7 +97,6 @@ static struct drm_driver driver = { | |||
97 | .major = DRIVER_MAJOR, | 97 | .major = DRIVER_MAJOR, |
98 | .minor = DRIVER_MINOR, | 98 | .minor = DRIVER_MINOR, |
99 | .patchlevel = DRIVER_PATCHLEVEL, | 99 | .patchlevel = DRIVER_PATCHLEVEL, |
100 | .gem_init_object = cirrus_gem_init_object, | ||
101 | .gem_free_object = cirrus_gem_free_object, | 100 | .gem_free_object = cirrus_gem_free_object, |
102 | .dumb_create = cirrus_dumb_create, | 101 | .dumb_create = cirrus_dumb_create, |
103 | .dumb_map_offset = cirrus_dumb_mmap_offset, | 102 | .dumb_map_offset = cirrus_dumb_mmap_offset, |
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.h b/drivers/gpu/drm/cirrus/cirrus_drv.h index 9b0bb9184afd..b6aded73838b 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.h +++ b/drivers/gpu/drm/cirrus/cirrus_drv.h | |||
@@ -191,7 +191,6 @@ int cirrus_device_init(struct cirrus_device *cdev, | |||
191 | struct pci_dev *pdev, | 191 | struct pci_dev *pdev, |
192 | uint32_t flags); | 192 | uint32_t flags); |
193 | void cirrus_device_fini(struct cirrus_device *cdev); | 193 | void cirrus_device_fini(struct cirrus_device *cdev); |
194 | int cirrus_gem_init_object(struct drm_gem_object *obj); | ||
195 | void cirrus_gem_free_object(struct drm_gem_object *obj); | 194 | void cirrus_gem_free_object(struct drm_gem_object *obj); |
196 | int cirrus_dumb_mmap_offset(struct drm_file *file, | 195 | int cirrus_dumb_mmap_offset(struct drm_file *file, |
197 | struct drm_device *dev, | 196 | struct drm_device *dev, |
diff --git a/drivers/gpu/drm/cirrus/cirrus_main.c b/drivers/gpu/drm/cirrus/cirrus_main.c index f130a533a512..78e76f24343d 100644 --- a/drivers/gpu/drm/cirrus/cirrus_main.c +++ b/drivers/gpu/drm/cirrus/cirrus_main.c | |||
@@ -255,12 +255,6 @@ int cirrus_dumb_create(struct drm_file *file, | |||
255 | return 0; | 255 | return 0; |
256 | } | 256 | } |
257 | 257 | ||
258 | int cirrus_gem_init_object(struct drm_gem_object *obj) | ||
259 | { | ||
260 | BUG(); | ||
261 | return 0; | ||
262 | } | ||
263 | |||
264 | void cirrus_bo_unref(struct cirrus_bo **bo) | 258 | void cirrus_bo_unref(struct cirrus_bo **bo) |
265 | { | 259 | { |
266 | struct ttm_buffer_object *tbo; | 260 | struct ttm_buffer_object *tbo; |
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 49293bdc972a..4761adedad2a 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c | |||
@@ -160,35 +160,6 @@ void drm_gem_private_object_init(struct drm_device *dev, | |||
160 | } | 160 | } |
161 | EXPORT_SYMBOL(drm_gem_private_object_init); | 161 | EXPORT_SYMBOL(drm_gem_private_object_init); |
162 | 162 | ||
163 | /** | ||
164 | * Allocate a GEM object of the specified size with shmfs backing store | ||
165 | */ | ||
166 | struct drm_gem_object * | ||
167 | drm_gem_object_alloc(struct drm_device *dev, size_t size) | ||
168 | { | ||
169 | struct drm_gem_object *obj; | ||
170 | |||
171 | obj = kzalloc(sizeof(*obj), GFP_KERNEL); | ||
172 | if (!obj) | ||
173 | goto free; | ||
174 | |||
175 | if (drm_gem_object_init(dev, obj, size) != 0) | ||
176 | goto free; | ||
177 | |||
178 | if (dev->driver->gem_init_object != NULL && | ||
179 | dev->driver->gem_init_object(obj) != 0) { | ||
180 | goto fput; | ||
181 | } | ||
182 | return obj; | ||
183 | fput: | ||
184 | /* Object_init mangles the global counters - readjust them. */ | ||
185 | fput(obj->filp); | ||
186 | free: | ||
187 | kfree(obj); | ||
188 | return NULL; | ||
189 | } | ||
190 | EXPORT_SYMBOL(drm_gem_object_alloc); | ||
191 | |||
192 | static void | 163 | static void |
193 | drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp) | 164 | drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp) |
194 | { | 165 | { |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index bb82ef78ca85..3a1e6d9b25f7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c | |||
@@ -264,7 +264,6 @@ static struct drm_driver exynos_drm_driver = { | |||
264 | .get_vblank_counter = drm_vblank_count, | 264 | .get_vblank_counter = drm_vblank_count, |
265 | .enable_vblank = exynos_drm_crtc_enable_vblank, | 265 | .enable_vblank = exynos_drm_crtc_enable_vblank, |
266 | .disable_vblank = exynos_drm_crtc_disable_vblank, | 266 | .disable_vblank = exynos_drm_crtc_disable_vblank, |
267 | .gem_init_object = exynos_drm_gem_init_object, | ||
268 | .gem_free_object = exynos_drm_gem_free_object, | 267 | .gem_free_object = exynos_drm_gem_free_object, |
269 | .gem_vm_ops = &exynos_drm_gem_vm_ops, | 268 | .gem_vm_ops = &exynos_drm_gem_vm_ops, |
270 | .dumb_create = exynos_drm_gem_dumb_create, | 269 | .dumb_create = exynos_drm_gem_dumb_create, |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 49f9cd232757..1ade191d84f4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c | |||
@@ -630,11 +630,6 @@ void exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev, | |||
630 | dma_unmap_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir); | 630 | dma_unmap_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir); |
631 | } | 631 | } |
632 | 632 | ||
633 | int exynos_drm_gem_init_object(struct drm_gem_object *obj) | ||
634 | { | ||
635 | return 0; | ||
636 | } | ||
637 | |||
638 | void exynos_drm_gem_free_object(struct drm_gem_object *obj) | 633 | void exynos_drm_gem_free_object(struct drm_gem_object *obj) |
639 | { | 634 | { |
640 | struct exynos_drm_gem_obj *exynos_gem_obj; | 635 | struct exynos_drm_gem_obj *exynos_gem_obj; |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.h b/drivers/gpu/drm/exynos/exynos_drm_gem.h index 09555afdfe9c..702ec3abe85c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.h +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.h | |||
@@ -135,9 +135,6 @@ unsigned long exynos_drm_gem_get_size(struct drm_device *dev, | |||
135 | unsigned int gem_handle, | 135 | unsigned int gem_handle, |
136 | struct drm_file *file_priv); | 136 | struct drm_file *file_priv); |
137 | 137 | ||
138 | /* initialize gem object. */ | ||
139 | int exynos_drm_gem_init_object(struct drm_gem_object *obj); | ||
140 | |||
141 | /* free gem object. */ | 138 | /* free gem object. */ |
142 | void exynos_drm_gem_free_object(struct drm_gem_object *gem_obj); | 139 | void exynos_drm_gem_free_object(struct drm_gem_object *gem_obj); |
143 | 140 | ||
diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c index 10ae8c52d06f..e2db48a81ed0 100644 --- a/drivers/gpu/drm/gma500/gem.c +++ b/drivers/gpu/drm/gma500/gem.c | |||
@@ -29,11 +29,6 @@ | |||
29 | #include <drm/drm_vma_manager.h> | 29 | #include <drm/drm_vma_manager.h> |
30 | #include "psb_drv.h" | 30 | #include "psb_drv.h" |
31 | 31 | ||
32 | int psb_gem_init_object(struct drm_gem_object *obj) | ||
33 | { | ||
34 | return -EINVAL; | ||
35 | } | ||
36 | |||
37 | void psb_gem_free_object(struct drm_gem_object *obj) | 32 | void psb_gem_free_object(struct drm_gem_object *obj) |
38 | { | 33 | { |
39 | struct gtt_range *gtt = container_of(obj, struct gtt_range, gem); | 34 | struct gtt_range *gtt = container_of(obj, struct gtt_range, gem); |
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index fcb4e9ff1f20..30dceb43690b 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c | |||
@@ -646,7 +646,6 @@ static struct drm_driver driver = { | |||
646 | .preclose = psb_driver_preclose, | 646 | .preclose = psb_driver_preclose, |
647 | .postclose = psb_driver_close, | 647 | .postclose = psb_driver_close, |
648 | 648 | ||
649 | .gem_init_object = psb_gem_init_object, | ||
650 | .gem_free_object = psb_gem_free_object, | 649 | .gem_free_object = psb_gem_free_object, |
651 | .gem_vm_ops = &psb_gem_vm_ops, | 650 | .gem_vm_ops = &psb_gem_vm_ops, |
652 | .dumb_create = psb_gem_dumb_create, | 651 | .dumb_create = psb_gem_dumb_create, |
diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h index 4535ac7708f8..6856bce58445 100644 --- a/drivers/gpu/drm/gma500/psb_drv.h +++ b/drivers/gpu/drm/gma500/psb_drv.h | |||
@@ -837,7 +837,6 @@ extern const struct drm_connector_helper_funcs | |||
837 | extern const struct drm_connector_funcs psb_intel_lvds_connector_funcs; | 837 | extern const struct drm_connector_funcs psb_intel_lvds_connector_funcs; |
838 | 838 | ||
839 | /* gem.c */ | 839 | /* gem.c */ |
840 | extern int psb_gem_init_object(struct drm_gem_object *obj); | ||
841 | extern void psb_gem_free_object(struct drm_gem_object *obj); | 840 | extern void psb_gem_free_object(struct drm_gem_object *obj); |
842 | extern int psb_gem_get_aperture(struct drm_device *dev, void *data, | 841 | extern int psb_gem_get_aperture(struct drm_device *dev, void *data, |
843 | struct drm_file *file); | 842 | struct drm_file *file); |
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 6f385e1e9ed6..5f424899009b 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -938,7 +938,6 @@ static struct drm_driver driver = { | |||
938 | .debugfs_init = i915_debugfs_init, | 938 | .debugfs_init = i915_debugfs_init, |
939 | .debugfs_cleanup = i915_debugfs_cleanup, | 939 | .debugfs_cleanup = i915_debugfs_cleanup, |
940 | #endif | 940 | #endif |
941 | .gem_init_object = i915_gem_init_object, | ||
942 | .gem_free_object = i915_gem_free_object, | 941 | .gem_free_object = i915_gem_free_object, |
943 | .gem_vm_ops = &i915_gem_vm_ops, | 942 | .gem_vm_ops = &i915_gem_vm_ops, |
944 | 943 | ||
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 8c52cbdb76f3..923d9d0eecf5 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1848,7 +1848,6 @@ int i915_gem_wait_ioctl(struct drm_device *dev, void *data, | |||
1848 | void i915_gem_load(struct drm_device *dev); | 1848 | void i915_gem_load(struct drm_device *dev); |
1849 | void *i915_gem_object_alloc(struct drm_device *dev); | 1849 | void *i915_gem_object_alloc(struct drm_device *dev); |
1850 | void i915_gem_object_free(struct drm_i915_gem_object *obj); | 1850 | void i915_gem_object_free(struct drm_i915_gem_object *obj); |
1851 | int i915_gem_init_object(struct drm_gem_object *obj); | ||
1852 | void i915_gem_object_init(struct drm_i915_gem_object *obj, | 1851 | void i915_gem_object_init(struct drm_i915_gem_object *obj, |
1853 | const struct drm_i915_gem_object_ops *ops); | 1852 | const struct drm_i915_gem_object_ops *ops); |
1854 | struct drm_i915_gem_object *i915_gem_alloc_object(struct drm_device *dev, | 1853 | struct drm_i915_gem_object *i915_gem_alloc_object(struct drm_device *dev, |
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 36c4ad9c752e..cf57276ce9aa 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -4107,13 +4107,6 @@ struct drm_i915_gem_object *i915_gem_alloc_object(struct drm_device *dev, | |||
4107 | return obj; | 4107 | return obj; |
4108 | } | 4108 | } |
4109 | 4109 | ||
4110 | int i915_gem_init_object(struct drm_gem_object *obj) | ||
4111 | { | ||
4112 | BUG(); | ||
4113 | |||
4114 | return 0; | ||
4115 | } | ||
4116 | |||
4117 | void i915_gem_free_object(struct drm_gem_object *gem_obj) | 4110 | void i915_gem_free_object(struct drm_gem_object *gem_obj) |
4118 | { | 4111 | { |
4119 | struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); | 4112 | struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); |
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c index fcce7b2f8011..f15ea3c4a90a 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.c +++ b/drivers/gpu/drm/mgag200/mgag200_drv.c | |||
@@ -99,7 +99,6 @@ static struct drm_driver driver = { | |||
99 | .minor = DRIVER_MINOR, | 99 | .minor = DRIVER_MINOR, |
100 | .patchlevel = DRIVER_PATCHLEVEL, | 100 | .patchlevel = DRIVER_PATCHLEVEL, |
101 | 101 | ||
102 | .gem_init_object = mgag200_gem_init_object, | ||
103 | .gem_free_object = mgag200_gem_free_object, | 102 | .gem_free_object = mgag200_gem_free_object, |
104 | .dumb_create = mgag200_dumb_create, | 103 | .dumb_create = mgag200_dumb_create, |
105 | .dumb_map_offset = mgag200_dumb_mmap_offset, | 104 | .dumb_map_offset = mgag200_dumb_mmap_offset, |
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h index baaae19332e2..cf11ee68a6d9 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.h +++ b/drivers/gpu/drm/mgag200/mgag200_drv.h | |||
@@ -260,7 +260,6 @@ int mgag200_driver_unload(struct drm_device *dev); | |||
260 | int mgag200_gem_create(struct drm_device *dev, | 260 | int mgag200_gem_create(struct drm_device *dev, |
261 | u32 size, bool iskernel, | 261 | u32 size, bool iskernel, |
262 | struct drm_gem_object **obj); | 262 | struct drm_gem_object **obj); |
263 | int mgag200_gem_init_object(struct drm_gem_object *obj); | ||
264 | int mgag200_dumb_create(struct drm_file *file, | 263 | int mgag200_dumb_create(struct drm_file *file, |
265 | struct drm_device *dev, | 264 | struct drm_device *dev, |
266 | struct drm_mode_create_dumb *args); | 265 | struct drm_mode_create_dumb *args); |
diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c index 0f8b861b10b3..b1120cb1db6d 100644 --- a/drivers/gpu/drm/mgag200/mgag200_main.c +++ b/drivers/gpu/drm/mgag200/mgag200_main.c | |||
@@ -310,12 +310,6 @@ int mgag200_dumb_create(struct drm_file *file, | |||
310 | return 0; | 310 | return 0; |
311 | } | 311 | } |
312 | 312 | ||
313 | int mgag200_gem_init_object(struct drm_gem_object *obj) | ||
314 | { | ||
315 | BUG(); | ||
316 | return 0; | ||
317 | } | ||
318 | |||
319 | void mgag200_bo_unref(struct mgag200_bo **bo) | 313 | void mgag200_bo_unref(struct mgag200_bo **bo) |
320 | { | 314 | { |
321 | struct ttm_buffer_object *tbo; | 315 | struct ttm_buffer_object *tbo; |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index e893c5362402..428d818be775 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c | |||
@@ -834,7 +834,6 @@ driver = { | |||
834 | .gem_prime_vmap = nouveau_gem_prime_vmap, | 834 | .gem_prime_vmap = nouveau_gem_prime_vmap, |
835 | .gem_prime_vunmap = nouveau_gem_prime_vunmap, | 835 | .gem_prime_vunmap = nouveau_gem_prime_vunmap, |
836 | 836 | ||
837 | .gem_init_object = nouveau_gem_object_new, | ||
838 | .gem_free_object = nouveau_gem_object_del, | 837 | .gem_free_object = nouveau_gem_object_del, |
839 | .gem_open_object = nouveau_gem_object_open, | 838 | .gem_open_object = nouveau_gem_object_open, |
840 | .gem_close_object = nouveau_gem_object_close, | 839 | .gem_close_object = nouveau_gem_object_close, |
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index 6618318abf50..418a6177a653 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c | |||
@@ -34,12 +34,6 @@ | |||
34 | #include "nouveau_ttm.h" | 34 | #include "nouveau_ttm.h" |
35 | #include "nouveau_gem.h" | 35 | #include "nouveau_gem.h" |
36 | 36 | ||
37 | int | ||
38 | nouveau_gem_object_new(struct drm_gem_object *gem) | ||
39 | { | ||
40 | return 0; | ||
41 | } | ||
42 | |||
43 | void | 37 | void |
44 | nouveau_gem_object_del(struct drm_gem_object *gem) | 38 | nouveau_gem_object_del(struct drm_gem_object *gem) |
45 | { | 39 | { |
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.h b/drivers/gpu/drm/nouveau/nouveau_gem.h index b535895df1a6..7caca057bc38 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.h +++ b/drivers/gpu/drm/nouveau/nouveau_gem.h | |||
@@ -19,7 +19,6 @@ nouveau_gem_object(struct drm_gem_object *gem) | |||
19 | extern int nouveau_gem_new(struct drm_device *, int size, int align, | 19 | extern int nouveau_gem_new(struct drm_device *, int size, int align, |
20 | uint32_t domain, uint32_t tile_mode, | 20 | uint32_t domain, uint32_t tile_mode, |
21 | uint32_t tile_flags, struct nouveau_bo **); | 21 | uint32_t tile_flags, struct nouveau_bo **); |
22 | extern int nouveau_gem_object_new(struct drm_gem_object *); | ||
23 | extern void nouveau_gem_object_del(struct drm_gem_object *); | 22 | extern void nouveau_gem_object_del(struct drm_gem_object *); |
24 | extern int nouveau_gem_object_open(struct drm_gem_object *, struct drm_file *); | 23 | extern int nouveau_gem_object_open(struct drm_gem_object *, struct drm_file *); |
25 | extern void nouveau_gem_object_close(struct drm_gem_object *, | 24 | extern void nouveau_gem_object_close(struct drm_gem_object *, |
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index 2603d909f49c..e7fa3cd96743 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c | |||
@@ -620,7 +620,6 @@ static struct drm_driver omap_drm_driver = { | |||
620 | .prime_fd_to_handle = drm_gem_prime_fd_to_handle, | 620 | .prime_fd_to_handle = drm_gem_prime_fd_to_handle, |
621 | .gem_prime_export = omap_gem_prime_export, | 621 | .gem_prime_export = omap_gem_prime_export, |
622 | .gem_prime_import = omap_gem_prime_import, | 622 | .gem_prime_import = omap_gem_prime_import, |
623 | .gem_init_object = omap_gem_init_object, | ||
624 | .gem_free_object = omap_gem_free_object, | 623 | .gem_free_object = omap_gem_free_object, |
625 | .gem_vm_ops = &omap_gem_vm_ops, | 624 | .gem_vm_ops = &omap_gem_vm_ops, |
626 | .dumb_create = omap_gem_dumb_create, | 625 | .dumb_create = omap_gem_dumb_create, |
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.h b/drivers/gpu/drm/omapdrm/omap_drv.h index 30b95b736658..07847693cf49 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.h +++ b/drivers/gpu/drm/omapdrm/omap_drv.h | |||
@@ -220,7 +220,6 @@ struct drm_gem_object *omap_gem_new(struct drm_device *dev, | |||
220 | int omap_gem_new_handle(struct drm_device *dev, struct drm_file *file, | 220 | int omap_gem_new_handle(struct drm_device *dev, struct drm_file *file, |
221 | union omap_gem_size gsize, uint32_t flags, uint32_t *handle); | 221 | union omap_gem_size gsize, uint32_t flags, uint32_t *handle); |
222 | void omap_gem_free_object(struct drm_gem_object *obj); | 222 | void omap_gem_free_object(struct drm_gem_object *obj); |
223 | int omap_gem_init_object(struct drm_gem_object *obj); | ||
224 | void *omap_gem_vaddr(struct drm_gem_object *obj); | 223 | void *omap_gem_vaddr(struct drm_gem_object *obj); |
225 | int omap_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, | 224 | int omap_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, |
226 | uint32_t handle, uint64_t *offset); | 225 | uint32_t handle, uint64_t *offset); |
diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index 533f6ebec531..5aec3e81fe24 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c | |||
@@ -1274,11 +1274,6 @@ unlock: | |||
1274 | return ret; | 1274 | return ret; |
1275 | } | 1275 | } |
1276 | 1276 | ||
1277 | int omap_gem_init_object(struct drm_gem_object *obj) | ||
1278 | { | ||
1279 | return -EINVAL; /* unused */ | ||
1280 | } | ||
1281 | |||
1282 | /* don't call directly.. called from GEM core when it is time to actually | 1277 | /* don't call directly.. called from GEM core when it is time to actually |
1283 | * free the object.. | 1278 | * free the object.. |
1284 | */ | 1279 | */ |
diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index 514118ae72d4..fee8748bdca5 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.c +++ b/drivers/gpu/drm/qxl/qxl_drv.c | |||
@@ -225,7 +225,6 @@ static struct drm_driver qxl_driver = { | |||
225 | .debugfs_init = qxl_debugfs_init, | 225 | .debugfs_init = qxl_debugfs_init, |
226 | .debugfs_cleanup = qxl_debugfs_takedown, | 226 | .debugfs_cleanup = qxl_debugfs_takedown, |
227 | #endif | 227 | #endif |
228 | .gem_init_object = qxl_gem_object_init, | ||
229 | .gem_free_object = qxl_gem_object_free, | 228 | .gem_free_object = qxl_gem_object_free, |
230 | .gem_open_object = qxl_gem_object_open, | 229 | .gem_open_object = qxl_gem_object_open, |
231 | .gem_close_object = qxl_gem_object_close, | 230 | .gem_close_object = qxl_gem_object_close, |
diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index f7c9adde46a0..41d22ed26060 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.h +++ b/drivers/gpu/drm/qxl/qxl_drv.h | |||
@@ -412,7 +412,6 @@ int qxl_gem_object_create_with_handle(struct qxl_device *qdev, | |||
412 | struct qxl_surface *surf, | 412 | struct qxl_surface *surf, |
413 | struct qxl_bo **qobj, | 413 | struct qxl_bo **qobj, |
414 | uint32_t *handle); | 414 | uint32_t *handle); |
415 | int qxl_gem_object_init(struct drm_gem_object *obj); | ||
416 | void qxl_gem_object_free(struct drm_gem_object *gobj); | 415 | void qxl_gem_object_free(struct drm_gem_object *gobj); |
417 | int qxl_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_priv); | 416 | int qxl_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_priv); |
418 | void qxl_gem_object_close(struct drm_gem_object *obj, | 417 | void qxl_gem_object_close(struct drm_gem_object *obj, |
diff --git a/drivers/gpu/drm/qxl/qxl_gem.c b/drivers/gpu/drm/qxl/qxl_gem.c index 1648e4125af7..b96f0c9d89b2 100644 --- a/drivers/gpu/drm/qxl/qxl_gem.c +++ b/drivers/gpu/drm/qxl/qxl_gem.c | |||
@@ -28,12 +28,6 @@ | |||
28 | #include "qxl_drv.h" | 28 | #include "qxl_drv.h" |
29 | #include "qxl_object.h" | 29 | #include "qxl_object.h" |
30 | 30 | ||
31 | int qxl_gem_object_init(struct drm_gem_object *obj) | ||
32 | { | ||
33 | /* we do nothings here */ | ||
34 | return 0; | ||
35 | } | ||
36 | |||
37 | void qxl_gem_object_free(struct drm_gem_object *gobj) | 31 | void qxl_gem_object_free(struct drm_gem_object *gobj) |
38 | { | 32 | { |
39 | struct qxl_bo *qobj = gem_to_qxl_bo(gobj); | 33 | struct qxl_bo *qobj = gem_to_qxl_bo(gobj); |
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index cdd12dcd988b..22f685827b7e 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c | |||
@@ -100,7 +100,6 @@ void radeon_driver_irq_preinstall_kms(struct drm_device *dev); | |||
100 | int radeon_driver_irq_postinstall_kms(struct drm_device *dev); | 100 | int radeon_driver_irq_postinstall_kms(struct drm_device *dev); |
101 | void radeon_driver_irq_uninstall_kms(struct drm_device *dev); | 101 | void radeon_driver_irq_uninstall_kms(struct drm_device *dev); |
102 | irqreturn_t radeon_driver_irq_handler_kms(DRM_IRQ_ARGS); | 102 | irqreturn_t radeon_driver_irq_handler_kms(DRM_IRQ_ARGS); |
103 | int radeon_gem_object_init(struct drm_gem_object *obj); | ||
104 | void radeon_gem_object_free(struct drm_gem_object *obj); | 103 | void radeon_gem_object_free(struct drm_gem_object *obj); |
105 | int radeon_gem_object_open(struct drm_gem_object *obj, | 104 | int radeon_gem_object_open(struct drm_gem_object *obj, |
106 | struct drm_file *file_priv); | 105 | struct drm_file *file_priv); |
@@ -408,7 +407,6 @@ static struct drm_driver kms_driver = { | |||
408 | .irq_uninstall = radeon_driver_irq_uninstall_kms, | 407 | .irq_uninstall = radeon_driver_irq_uninstall_kms, |
409 | .irq_handler = radeon_driver_irq_handler_kms, | 408 | .irq_handler = radeon_driver_irq_handler_kms, |
410 | .ioctls = radeon_ioctls_kms, | 409 | .ioctls = radeon_ioctls_kms, |
411 | .gem_init_object = radeon_gem_object_init, | ||
412 | .gem_free_object = radeon_gem_object_free, | 410 | .gem_free_object = radeon_gem_object_free, |
413 | .gem_open_object = radeon_gem_object_open, | 411 | .gem_open_object = radeon_gem_object_open, |
414 | .gem_close_object = radeon_gem_object_close, | 412 | .gem_close_object = radeon_gem_object_close, |
diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index dce99c8a5835..805c5e566b9a 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c | |||
@@ -29,13 +29,6 @@ | |||
29 | #include <drm/radeon_drm.h> | 29 | #include <drm/radeon_drm.h> |
30 | #include "radeon.h" | 30 | #include "radeon.h" |
31 | 31 | ||
32 | int radeon_gem_object_init(struct drm_gem_object *obj) | ||
33 | { | ||
34 | BUG(); | ||
35 | |||
36 | return 0; | ||
37 | } | ||
38 | |||
39 | void radeon_gem_object_free(struct drm_gem_object *gobj) | 32 | void radeon_gem_object_free(struct drm_gem_object *gobj) |
40 | { | 33 | { |
41 | struct radeon_bo *robj = gem_to_radeon_bo(gobj); | 34 | struct radeon_bo *robj = gem_to_radeon_bo(gobj); |
diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c index 7650dc0d78ce..3ddd6cd98ac1 100644 --- a/drivers/gpu/drm/udl/udl_drv.c +++ b/drivers/gpu/drm/udl/udl_drv.c | |||
@@ -77,7 +77,6 @@ static struct drm_driver driver = { | |||
77 | .unload = udl_driver_unload, | 77 | .unload = udl_driver_unload, |
78 | 78 | ||
79 | /* gem hooks */ | 79 | /* gem hooks */ |
80 | .gem_init_object = udl_gem_init_object, | ||
81 | .gem_free_object = udl_gem_free_object, | 80 | .gem_free_object = udl_gem_free_object, |
82 | .gem_vm_ops = &udl_gem_vm_ops, | 81 | .gem_vm_ops = &udl_gem_vm_ops, |
83 | 82 | ||
diff --git a/drivers/gpu/drm/udl/udl_drv.h b/drivers/gpu/drm/udl/udl_drv.h index 56aec9409fa3..1fbf7b357f16 100644 --- a/drivers/gpu/drm/udl/udl_drv.h +++ b/drivers/gpu/drm/udl/udl_drv.h | |||
@@ -115,7 +115,6 @@ int udl_dumb_create(struct drm_file *file_priv, | |||
115 | int udl_gem_mmap(struct drm_file *file_priv, struct drm_device *dev, | 115 | int udl_gem_mmap(struct drm_file *file_priv, struct drm_device *dev, |
116 | uint32_t handle, uint64_t *offset); | 116 | uint32_t handle, uint64_t *offset); |
117 | 117 | ||
118 | int udl_gem_init_object(struct drm_gem_object *obj); | ||
119 | void udl_gem_free_object(struct drm_gem_object *gem_obj); | 118 | void udl_gem_free_object(struct drm_gem_object *gem_obj); |
120 | struct udl_gem_object *udl_gem_alloc_object(struct drm_device *dev, | 119 | struct udl_gem_object *udl_gem_alloc_object(struct drm_device *dev, |
121 | size_t size); | 120 | size_t size); |
diff --git a/drivers/gpu/drm/udl/udl_gem.c b/drivers/gpu/drm/udl/udl_gem.c index 8bf646183bac..24ffbe990736 100644 --- a/drivers/gpu/drm/udl/udl_gem.c +++ b/drivers/gpu/drm/udl/udl_gem.c | |||
@@ -107,13 +107,6 @@ int udl_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
107 | } | 107 | } |
108 | } | 108 | } |
109 | 109 | ||
110 | int udl_gem_init_object(struct drm_gem_object *obj) | ||
111 | { | ||
112 | BUG(); | ||
113 | |||
114 | return 0; | ||
115 | } | ||
116 | |||
117 | static int udl_gem_get_pages(struct udl_gem_object *obj, gfp_t gfpmask) | 110 | static int udl_gem_get_pages(struct udl_gem_object *obj, gfp_t gfpmask) |
118 | { | 111 | { |
119 | struct page **pages; | 112 | struct page **pages; |