video: tegra: nvmap: remove nvmap_dmabuf_to_user_id
Krishna Reddy [Tue, 17 Dec 2013 16:54:56 +0000 (08:54 -0800)]
remove obsolete API nvmap_dmabuf_to_user_id.

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

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

index 9fbbf5e..8b050c8 100644 (file)
@@ -760,17 +760,6 @@ void *nvmap_get_dmabuf_private(struct dma_buf *dmabuf)
        return priv;
 }
 
-ulong nvmap_dmabuf_to_user_id(struct dma_buf *dmabuf)
-{
-       struct nvmap_handle_info *info;
-
-       if (!virt_addr_valid(dmabuf))
-               return 0;
-
-       info = dmabuf->priv;
-       return (ulong)marshal_kernel_handle((ulong)info->handle);
-}
-
 /*
  * List detailed info for all buffers allocated.
  */
index 5ce9f5b..362c689 100644 (file)
@@ -67,8 +67,6 @@ struct dma_buf *nvmap_alloc_dmabuf(size_t size, size_t align,
 
 struct dma_buf *nvmap_dmabuf_export(struct nvmap_client *client, ulong user_id);
 
-ulong nvmap_dmabuf_to_user_id(struct dma_buf *dmabuf);
-
 struct nvmap_client *nvmap_client_get_file(int fd);
 
 struct nvmap_client *nvmap_client_get(struct nvmap_client *client);