From 9515f031fa33491ca7c386b5ce1ff80226fecd7f Mon Sep 17 00:00:00 2001 From: Krishna Reddy Date: Mon, 19 Dec 2011 10:43:25 -0800 Subject: video: tegra: host: Disable nvmap struct dereferencing. Disable nvmap struct dereferencing, if nvmap is disabled. Change-Id: If089adae92366865669389b2f965020cfb90c10b Signed-off-by: Krishna Reddy Reviewed-on: http://git-master/r/71031 Reviewed-by: Automatic_Commit_Validation_User --- drivers/video/tegra/host/dev.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/video/tegra/host/dev.c') 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) -- cgit v1.2.3