drm/nouveau: remove dead/ums code from nouveau_ioc32.c
Subsystems (3)
PATCH 1/1 drm/nouveau: remove dead/ums code from nouveau_ioc32.c
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(-)
drivers/gpu/drm/nouveau/nouveau_ioc32.c +3 -14
@@ -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); }
Signature · 1 line
1.8.4