video: tegra: nvmap: remove deprecated ioctl cmd
Krishna Reddy [Mon, 13 Jan 2014 21:20:07 +0000 (13:20 -0800)]
Remove deprecated ioctl cmd NVMAP_IOC_CLAIM

Change-Id: I88efbf31ff47873f8dabeca14a33f539689f063f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/355221
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>

drivers/video/tegra/nvmap/nvmap_dev.c
include/linux/nvmap.h

index 51db5f4..aeacdfe 100644 (file)
@@ -736,11 +736,6 @@ static long nvmap_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
                return -EFAULT;
 
        switch (cmd) {
-       case NVMAP_IOC_CLAIM:
-               nvmap_warn(filp->private_data, "preserved handles not"
-                          "supported\n");
-               err = -ENODEV;
-               break;
        case NVMAP_IOC_CREATE:
        case NVMAP_IOC_FROM_ID:
        case NVMAP_IOC_FROM_FD:
index 362c689..eb3c119 100644 (file)
@@ -254,7 +254,6 @@ struct nvmap_cache_op {
  * handle; on return, the argument is the name of the new handle
  */
 #define NVMAP_IOC_CREATE  _IOWR(NVMAP_IOC_MAGIC, 0, struct nvmap_create_handle)
-#define NVMAP_IOC_CLAIM   _IOWR(NVMAP_IOC_MAGIC, 1, struct nvmap_create_handle)
 #define NVMAP_IOC_FROM_ID _IOWR(NVMAP_IOC_MAGIC, 2, struct nvmap_create_handle)
 
 /* Actually allocates memory for the specified handle */