drm: kill reclaim_buffers callback
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Oct 2011 22:20:57 +0000 (00:20 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Jul 2012 02:50:28 +0000 (22:50 -0400)
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>
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/gma500/psb_drv.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/mga/mga_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/r128/r128_drv.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/tdfx/tdfx_drv.c
include/drm/drmP.h

index 6cf9369e8cd516c2978df8e667618bcb8cefac4e..96b8c8f9c0285374e4b4d0035fde7c167f6de67c 100644 (file)
@@ -381,9 +381,8 @@ static void drm_master_release(struct drm_device *dev, struct file *filp)
                              _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock));
        }
 
-       if (drm_core_check_feature(dev, DRIVER_HAVE_DMA)) {
-               dev->driver->reclaim_buffers(dev, file_priv);
-       }
+       if (drm_core_check_feature(dev, DRIVER_HAVE_DMA))
+               drm_core_reclaim_buffers(dev, file_priv);
 }
 
 static void drm_events_release(struct drm_file *file_priv)
index caba6e08693cb83119f3f22e32ba8f14e1b4fbdd..cd1dd1b14c761f996855784c2431d4a99f2d5112 100644 (file)
@@ -632,7 +632,6 @@ static struct drm_driver driver = {
        .open = psb_driver_open,
        .preclose = psb_driver_preclose,
        .postclose = psb_driver_close,
-       .reclaim_buffers = drm_core_reclaim_buffers,
 
        .gem_init_object = psb_gem_init_object,
        .gem_free_object = psb_gem_free_object,
index e754cdfaec79103f75760b9fe17e1f7d7f1974e8..ed22612bc8477a3aa6dc95cfc2e058f7071c4878 100644 (file)
@@ -940,7 +940,6 @@ static struct drm_driver driver = {
        .resume = i915_resume,
 
        .device_is_agp = i915_driver_device_is_agp,
-       .reclaim_buffers = drm_core_reclaim_buffers,
        .master_create = i915_master_create,
        .master_destroy = i915_master_destroy,
 #if defined(CONFIG_DEBUG_FS)
index f9a925d5881966d7f88acd66f065be29976f3659..b1bb46de3f5a2b58617a4bdc3f25df018673b014 100644 (file)
@@ -75,7 +75,6 @@ static struct drm_driver driver = {
        .irq_postinstall = mga_driver_irq_postinstall,
        .irq_uninstall = mga_driver_irq_uninstall,
        .irq_handler = mga_driver_irq_handler,
-       .reclaim_buffers = drm_core_reclaim_buffers,
        .ioctls = mga_ioctls,
        .dma_ioctl = mga_dma_buffers,
        .fops = &mga_driver_fops,
index cad254c8e387ed4c556a260cfbc28a98efef5146..b4d1b4afcac558d1cab01e4defe621c44a87d5cb 100644 (file)
@@ -422,7 +422,6 @@ static struct drm_driver driver = {
        .get_vblank_counter = drm_vblank_count,
        .enable_vblank = nouveau_vblank_enable,
        .disable_vblank = nouveau_vblank_disable,
-       .reclaim_buffers = drm_core_reclaim_buffers,
        .ioctls = nouveau_ioctls,
        .fops = &nouveau_driver_fops,
 
index 88718fad5d6db1093d0a795c6076bb04c5f8cd65..2666a5308ab9ee890bfb04439906e6eb422c0284 100644 (file)
@@ -71,7 +71,6 @@ static struct drm_driver driver = {
        .irq_postinstall = r128_driver_irq_postinstall,
        .irq_uninstall = r128_driver_irq_uninstall,
        .irq_handler = r128_driver_irq_handler,
-       .reclaim_buffers = drm_core_reclaim_buffers,
        .ioctls = r128_ioctls,
        .dma_ioctl = r128_cce_buffers,
        .fops = &r128_driver_fops,
index 042fcfff3bc4fcefba3d5c8a8c4087a1b27caab4..dcea6f01ae4e2ec3fe60def4a345c2528d3fedc9 100644 (file)
@@ -262,7 +262,6 @@ static struct drm_driver driver_old = {
        .irq_postinstall = radeon_driver_irq_postinstall,
        .irq_uninstall = radeon_driver_irq_uninstall,
        .irq_handler = radeon_driver_irq_handler,
-       .reclaim_buffers = drm_core_reclaim_buffers,
        .ioctls = radeon_ioctls,
        .dma_ioctl = radeon_cp_buffers,
        .fops = &radeon_driver_old_fops,
@@ -365,7 +364,6 @@ static struct drm_driver kms_driver = {
        .irq_postinstall = radeon_driver_irq_postinstall_kms,
        .irq_uninstall = radeon_driver_irq_uninstall_kms,
        .irq_handler = radeon_driver_irq_handler_kms,
-       .reclaim_buffers = drm_core_reclaim_buffers,
        .ioctls = radeon_ioctls_kms,
        .gem_init_object = radeon_gem_object_init,
        .gem_free_object = radeon_gem_object_free,
index 1613c78544c0e8b9bf4aa63501f0dece2d69d003..90f6b13acfac416270ac5abb70fa919cf66b611a 100644 (file)
@@ -54,7 +54,6 @@ static const struct file_operations tdfx_driver_fops = {
 
 static struct drm_driver driver = {
        .driver_features = DRIVER_USE_MTRR,
-       .reclaim_buffers = drm_core_reclaim_buffers,
        .fops = &tdfx_driver_fops,
        .name = DRIVER_NAME,
        .desc = DRIVER_DESC,
index 259a7619c464c6042b6bb02df0f136c758ece431..022db5a768aa31acace2b4689a6757632988e97c 100644 (file)
@@ -876,8 +876,6 @@ struct drm_driver {
        void (*irq_preinstall) (struct drm_device *dev);
        int (*irq_postinstall) (struct drm_device *dev);
        void (*irq_uninstall) (struct drm_device *dev);
-       void (*reclaim_buffers) (struct drm_device *dev,
-                                struct drm_file * file_priv);
        void (*set_version) (struct drm_device *dev,
                             struct drm_set_version *sv);