diff options
Diffstat (limited to 'drivers/video/tegra/nvmap/nvmap_ioctl.c')
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap_ioctl.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_ioctl.c b/drivers/video/tegra/nvmap/nvmap_ioctl.c index d9853e179f85..dc319107786a 100644 --- a/drivers/video/tegra/nvmap/nvmap_ioctl.c +++ b/drivers/video/tegra/nvmap/nvmap_ioctl.c @@ -47,26 +47,16 @@ static ssize_t rw_handle(struct nvmap_client *client, struct nvmap_handle *h, unsigned long sys_stride, unsigned long elem_size, unsigned long count); -static struct nvmap_handle *fd_to_handle_id(int handle) +struct nvmap_handle *unmarshal_user_handle(__u32 handle) { struct nvmap_handle *h; - h = nvmap_get_id_from_dmabuf_fd(NULL, handle); + h = nvmap_get_id_from_dmabuf_fd(NULL, (int)handle); if (!IS_ERR(h)) return h; return 0; } -static struct nvmap_handle *unmarshal_user_handle(__u32 handle) -{ - return fd_to_handle_id((int)handle); -} - -struct nvmap_handle *unmarshal_user_id(u32 id) -{ - return unmarshal_user_handle(id); -} - /* * marshal_id/unmarshal_id are for get_id/handle_from_id. * These are added to support using Fd's for handle. |