aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-25 18:20:57 -0400
committerDave Airlie <airlied@redhat.com>2012-07-19 22:50:28 -0400
commitb0071efe827f68cf173e1a8868b70618e9aca7d7 (patch)
tree94b8d7ea720143811f223a2ae5ed2e7365390b52
parente2b3c5b64b35af35b0715936f88212c457394c2f (diff)
drm: kill reclaim_buffers callback
All leftover users either haven't set DRIVER_HAVE_DMA, in which case this will never be called, or use the drm_core implementation. Call that directly in the only callsite. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/drm_fops.c5
-rw-r--r--drivers/gpu/drm/gma500/psb_drv.c1
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c1
-rw-r--r--drivers/gpu/drm/mga/mga_drv.c1
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.c1
-rw-r--r--drivers/gpu/drm/r128/r128_drv.c1
-rw-r--r--drivers/gpu/drm/radeon/radeon_drv.c2
-rw-r--r--drivers/gpu/drm/tdfx/tdfx_drv.c1
-rw-r--r--include/drm/drmP.h2
9 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index 6cf9369e8cd..96b8c8f9c02 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -381,9 +381,8 @@ static void drm_master_release(struct drm_device *dev, struct file *filp)
381 _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock)); 381 _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock));
382 } 382 }
383 383
384 if (drm_core_check_feature(dev, DRIVER_HAVE_DMA)) { 384 if (drm_core_check_feature(dev, DRIVER_HAVE_DMA))
385 dev->driver->reclaim_buffers(dev, file_priv); 385 drm_core_reclaim_buffers(dev, file_priv);
386 }
387} 386}
388 387
389static void drm_events_release(struct drm_file *file_priv) 388static void drm_events_release(struct drm_file *file_priv)
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index caba6e08693..cd1dd1b14c7 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -632,7 +632,6 @@ static struct drm_driver driver = {
632 .open = psb_driver_open, 632 .open = psb_driver_open,
633 .preclose = psb_driver_preclose, 633 .preclose = psb_driver_preclose,
634 .postclose = psb_driver_close, 634 .postclose = psb_driver_close,
635 .reclaim_buffers = drm_core_reclaim_buffers,
636 635
637 .gem_init_object = psb_gem_init_object, 636 .gem_init_object = psb_gem_init_object,
638 .gem_free_object = psb_gem_free_object, 637 .gem_free_object = psb_gem_free_object,
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index e754cdfaec7..ed22612bc84 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -940,7 +940,6 @@ static struct drm_driver driver = {
940 .resume = i915_resume, 940 .resume = i915_resume,
941 941
942 .device_is_agp = i915_driver_device_is_agp, 942 .device_is_agp = i915_driver_device_is_agp,
943 .reclaim_buffers = drm_core_reclaim_buffers,
944 .master_create = i915_master_create, 943 .master_create = i915_master_create,
945 .master_destroy = i915_master_destroy, 944 .master_destroy = i915_master_destroy,
946#if defined(CONFIG_DEBUG_FS) 945#if defined(CONFIG_DEBUG_FS)
diff --git a/drivers/gpu/drm/mga/mga_drv.c b/drivers/gpu/drm/mga/mga_drv.c
index f9a925d5881..b1bb46de3f5 100644
--- a/drivers/gpu/drm/mga/mga_drv.c
+++ b/drivers/gpu/drm/mga/mga_drv.c
@@ -75,7 +75,6 @@ static struct drm_driver driver = {
75 .irq_postinstall = mga_driver_irq_postinstall, 75 .irq_postinstall = mga_driver_irq_postinstall,
76 .irq_uninstall = mga_driver_irq_uninstall, 76 .irq_uninstall = mga_driver_irq_uninstall,
77 .irq_handler = mga_driver_irq_handler, 77 .irq_handler = mga_driver_irq_handler,
78 .reclaim_buffers = drm_core_reclaim_buffers,
79 .ioctls = mga_ioctls, 78 .ioctls = mga_ioctls,
80 .dma_ioctl = mga_dma_buffers, 79 .dma_ioctl = mga_dma_buffers,
81 .fops = &mga_driver_fops, 80 .fops = &mga_driver_fops,
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c
index cad254c8e38..b4d1b4afcac 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -422,7 +422,6 @@ static struct drm_driver driver = {
422 .get_vblank_counter = drm_vblank_count, 422 .get_vblank_counter = drm_vblank_count,
423 .enable_vblank = nouveau_vblank_enable, 423 .enable_vblank = nouveau_vblank_enable,
424 .disable_vblank = nouveau_vblank_disable, 424 .disable_vblank = nouveau_vblank_disable,
425 .reclaim_buffers = drm_core_reclaim_buffers,
426 .ioctls = nouveau_ioctls, 425 .ioctls = nouveau_ioctls,
427 .fops = &nouveau_driver_fops, 426 .fops = &nouveau_driver_fops,
428 427
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c
index 88718fad5d6..2666a5308ab 100644
--- a/drivers/gpu/drm/r128/r128_drv.c
+++ b/drivers/gpu/drm/r128/r128_drv.c
@@ -71,7 +71,6 @@ static struct drm_driver driver = {
71 .irq_postinstall = r128_driver_irq_postinstall, 71 .irq_postinstall = r128_driver_irq_postinstall,
72 .irq_uninstall = r128_driver_irq_uninstall, 72 .irq_uninstall = r128_driver_irq_uninstall,
73 .irq_handler = r128_driver_irq_handler, 73 .irq_handler = r128_driver_irq_handler,
74 .reclaim_buffers = drm_core_reclaim_buffers,
75 .ioctls = r128_ioctls, 74 .ioctls = r128_ioctls,
76 .dma_ioctl = r128_cce_buffers, 75 .dma_ioctl = r128_cce_buffers,
77 .fops = &r128_driver_fops, 76 .fops = &r128_driver_fops,
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 042fcfff3bc..dcea6f01ae4 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -262,7 +262,6 @@ static struct drm_driver driver_old = {
262 .irq_postinstall = radeon_driver_irq_postinstall, 262 .irq_postinstall = radeon_driver_irq_postinstall,
263 .irq_uninstall = radeon_driver_irq_uninstall, 263 .irq_uninstall = radeon_driver_irq_uninstall,
264 .irq_handler = radeon_driver_irq_handler, 264 .irq_handler = radeon_driver_irq_handler,
265 .reclaim_buffers = drm_core_reclaim_buffers,
266 .ioctls = radeon_ioctls, 265 .ioctls = radeon_ioctls,
267 .dma_ioctl = radeon_cp_buffers, 266 .dma_ioctl = radeon_cp_buffers,
268 .fops = &radeon_driver_old_fops, 267 .fops = &radeon_driver_old_fops,
@@ -365,7 +364,6 @@ static struct drm_driver kms_driver = {
365 .irq_postinstall = radeon_driver_irq_postinstall_kms, 364 .irq_postinstall = radeon_driver_irq_postinstall_kms,
366 .irq_uninstall = radeon_driver_irq_uninstall_kms, 365 .irq_uninstall = radeon_driver_irq_uninstall_kms,
367 .irq_handler = radeon_driver_irq_handler_kms, 366 .irq_handler = radeon_driver_irq_handler_kms,
368 .reclaim_buffers = drm_core_reclaim_buffers,
369 .ioctls = radeon_ioctls_kms, 367 .ioctls = radeon_ioctls_kms,
370 .gem_init_object = radeon_gem_object_init, 368 .gem_init_object = radeon_gem_object_init,
371 .gem_free_object = radeon_gem_object_free, 369 .gem_free_object = radeon_gem_object_free,
diff --git a/drivers/gpu/drm/tdfx/tdfx_drv.c b/drivers/gpu/drm/tdfx/tdfx_drv.c
index 1613c78544c..90f6b13acfa 100644
--- a/drivers/gpu/drm/tdfx/tdfx_drv.c
+++ b/drivers/gpu/drm/tdfx/tdfx_drv.c
@@ -54,7 +54,6 @@ static const struct file_operations tdfx_driver_fops = {
54 54
55static struct drm_driver driver = { 55static struct drm_driver driver = {
56 .driver_features = DRIVER_USE_MTRR, 56 .driver_features = DRIVER_USE_MTRR,
57 .reclaim_buffers = drm_core_reclaim_buffers,
58 .fops = &tdfx_driver_fops, 57 .fops = &tdfx_driver_fops,
59 .name = DRIVER_NAME, 58 .name = DRIVER_NAME,
60 .desc = DRIVER_DESC, 59 .desc = DRIVER_DESC,
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 259a7619c46..022db5a768a 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -876,8 +876,6 @@ struct drm_driver {
876 void (*irq_preinstall) (struct drm_device *dev); 876 void (*irq_preinstall) (struct drm_device *dev);
877 int (*irq_postinstall) (struct drm_device *dev); 877 int (*irq_postinstall) (struct drm_device *dev);
878 void (*irq_uninstall) (struct drm_device *dev); 878 void (*irq_uninstall) (struct drm_device *dev);
879 void (*reclaim_buffers) (struct drm_device *dev,
880 struct drm_file * file_priv);
881 void (*set_version) (struct drm_device *dev, 879 void (*set_version) (struct drm_device *dev,
882 struct drm_set_version *sv); 880 struct drm_set_version *sv);
883 881