drm: kill dev->driver->set_version
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 13:41:16 +0000 (15:41 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Aug 2013 00:03:26 +0000 (10:03 +1000)
Totally unused, so just rip it out. Anyway, we want drivers to be
fully backwards compatible, allowing them to change behaviour is just
a recipe for them to break badly.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_ioctl.c
include/drm/drmP.h

index ffd7a7ba70d496212c149bfd2a11798f5e01665f..0acf0807d1ad03f877d247ca34683092dacc2853 100644 (file)
@@ -352,9 +352,6 @@ int drm_setversion(struct drm_device *dev, void *data, struct drm_file *file_pri
                        retcode = -EINVAL;
                        goto done;
                }
-
-               if (dev->driver->set_version)
-                       dev->driver->set_version(dev, sv);
        }
 
 done:
index 3ecdde6274be019eecca6cd106344ae623b7d936..813ca1d1172821b2106a9797eaaa78ca26273bd8 100644 (file)
@@ -883,8 +883,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 (*set_version) (struct drm_device *dev,
-                            struct drm_set_version *sv);
 
        /* Master routines */
        int (*master_create)(struct drm_device *dev, struct drm_master *master);