summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/dev.c
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2011-12-19 10:43:25 -0800
committerKrishna Reddy <vdumpa@nvidia.com>2011-12-29 11:30:49 -0800
commit9515f031fa33491ca7c386b5ce1ff80226fecd7f (patch)
tree294d6d30deb0b1025e3d8b5432fed260e117b49f /drivers/video/tegra/host/dev.c
parenta598a93c3ac7835604b365aac504205d6b38ef2a (diff)
video: tegra: host: Disable nvmap struct dereferencing.
Disable nvmap struct dereferencing, if nvmap is disabled. Change-Id: If089adae92366865669389b2f965020cfb90c10b Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/71031 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/video/tegra/host/dev.c')
-rw-r--r--drivers/video/tegra/host/dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/dev.c b/drivers/video/tegra/host/dev.c
index b0a4c20ba32b..bdbb21fe9e7c 100644
--- a/drivers/video/tegra/host/dev.c
+++ b/drivers/video/tegra/host/dev.c
@@ -77,6 +77,7 @@ struct nvhost_ctrl_userctx {
*/
static void trace_write_cmdbufs(struct nvhost_job *job)
{
+#if defined(CONFIG_TEGRA_NVMAP)
struct nvmap_handle_ref handle;
void *mem = NULL;
int i = 0;
@@ -108,6 +109,7 @@ static void trace_write_cmdbufs(struct nvhost_job *job)
nvmap_munmap(&handle, mem);
}
}
+#endif
}
static int nvhost_channelrelease(struct inode *inode, struct file *filp)