]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: make nvhost_free_syncpt static
authorDeepak Nibade <dnibade@nvidia.com>
Thu, 21 May 2015 13:57:32 +0000 (19:27 +0530)
committerArto Merilainen <amerilainen@nvidia.com>
Mon, 1 Jun 2015 06:44:53 +0000 (23:44 -0700)
Make nvhost_free_syncpt() API as static and remove it from
global header file nvhost.h since this function should
no longer be called directly by any client

nvhost_free_syncpt() will be automatically called once
refcount of syncpoint drops to zero

Bug 1646883

Change-Id: I7511f80bec62f946966c2f0c50c78b1325c3248c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/745619
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
drivers/video/tegra/host/nvhost_syncpt.c
include/linux/nvhost.h

index b9e8fb4742bed84ac10aaa44bbf455a06905bd49..f9a48dfde4ce92a72f6e2ace23da1dfc3d695810 100644 (file)
@@ -897,7 +897,7 @@ EXPORT_SYMBOL_GPL(nvhost_get_syncpt_client_managed);
 /**
  * API to mark in-use syncpt as free
  */
-void nvhost_free_syncpt(u32 id)
+static void nvhost_free_syncpt(u32 id)
 {
        struct nvhost_master *host = nvhost;
        struct nvhost_syncpt *sp = &host->syncpt;
@@ -939,7 +939,6 @@ void nvhost_free_syncpt(u32 id)
 
        mutex_unlock(&sp->syncpt_mutex);
 }
-EXPORT_SYMBOL_GPL(nvhost_free_syncpt);
 
 static void nvhost_reserve_syncpts(struct nvhost_syncpt *sp)
 {
index fe77af94a1d88ba1e093011b1fd792ae4c11e4d5..f99ab8e61bc3a2adfb78ed50358270b5843a0216 100644 (file)
@@ -394,7 +394,6 @@ u32 nvhost_get_syncpt_client_managed(const char *syncpt_name);
 u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev,
                                   u32 param);
 u32 nvhost_get_syncpt_host_managed_by_name(const char *syncpt_name);
-void nvhost_free_syncpt(u32 id);
 void nvhost_syncpt_put_ref_ext(u32 id);
 const char *nvhost_syncpt_get_name(struct platform_device *dev, int id);
 u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs);