video: tegra: nvmap: Export nvmap_duplicate_handle_id
Terje Bergstrom [Mon, 21 May 2012 18:14:03 +0000 (21:14 +0300)]
Export nvmap_duplicate_handle_id() for usage by other drivers. It is
already being used in nvavp and tegradc, and nvhost needs it to be
able to move the relocation code to inside nvhost.

Bug 965206

Change-Id: I3f818d1faa967886e834aa457a99dfdb61bc6b85
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/103587
Reviewed-by: Automatic_Commit_Validation_User

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

index fc811ab..b0fb70f 100644 (file)
@@ -204,9 +204,6 @@ struct nvmap_handle *nvmap_get_handle_id(struct nvmap_client *client,
 struct nvmap_handle_ref *nvmap_create_handle(struct nvmap_client *client,
                                             size_t size);
 
-struct nvmap_handle_ref *nvmap_duplicate_handle_id(struct nvmap_client *client,
-                                                  unsigned long id);
-
 int nvmap_alloc_handle_id(struct nvmap_client *client,
                          unsigned long id, unsigned int heap_mask,
                          size_t align, unsigned int flags);
index ba9c781..bea5969 100644 (file)
@@ -138,6 +138,9 @@ int nvmap_patch_word(struct nvmap_client *client,
                     struct nvmap_handle *patch,
                     u32 patch_offset, u32 patch_value);
 
+struct nvmap_handle_ref *nvmap_duplicate_handle_id(struct nvmap_client *client,
+                                                  unsigned long id);
+
 struct nvmap_platform_carveout {
        const char *name;
        unsigned int usage_mask;