Ever since the initial import of nouveau into upstream
kernel it has been a KMS only driver. Drop the old and
unused code, and update the comments while we're there.

Signed-off-by: Emil Velikov <[email protected]>
---
 drivers/gpu/drm/nouveau/nouveau_ioc32.c | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_ioc32.c 
b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
index c1a7e5a..58ba807 100644
--- a/drivers/gpu/drm/nouveau/nouveau_ioc32.c
+++ b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
@@ -1,7 +1,7 @@
 /**
- * \file mga_ioc32.c
+ * \file nouveau_ioc32.c
  *
- * 32-bit ioctl compatibility routines for the MGA DRM.
+ * 32-bit ioctl compatibility routines for the NOUVEAU DRM.
  *
  * \author Dave Airlie <[email protected]> with code from patches by Egbert Eich
  *
@@ -50,20 +50,9 @@ long nouveau_compat_ioctl(struct file *filp, unsigned int 
cmd,
                         unsigned long arg)
 {
        unsigned int nr = DRM_IOCTL_NR(cmd);
-       drm_ioctl_compat_t *fn = NULL;
-       int ret;
 
        if (nr < DRM_COMMAND_BASE)
                return drm_compat_ioctl(filp, cmd, arg);
 
-#if 0
-       if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(mga_compat_ioctls))
-               fn = nouveau_compat_ioctls[nr - DRM_COMMAND_BASE];
-#endif
-       if (fn != NULL)
-               ret = (*fn)(filp, cmd, arg);
-       else
-               ret = nouveau_drm_ioctl(filp, cmd, arg);
-
-       return ret;
+       return nouveau_drm_ioctl(filp, cmd, arg);
 }
-- 
1.8.4

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to