aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2011-07-05 14:35:32 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-05 12:16:55 +0200
commit0c78d405f87b50f306f0708dde06de085b344f4e (patch)
treef08217665ef90cbfe84e708c961828853f7cf603 /drivers/misc
parent7f5fe6e8904eb6c47e9af8fe7fd911c44d7f518d (diff)
Lee's chunk to make the kernel compile
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/hwmem/hwmem-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/hwmem/hwmem-main.c b/drivers/misc/hwmem/hwmem-main.c
index 9162ff4fc91..b91d99bc2be 100644
--- a/drivers/misc/hwmem/hwmem-main.c
+++ b/drivers/misc/hwmem/hwmem-main.c
@@ -240,9 +240,10 @@ struct hwmem_alloc *hwmem_alloc(size_t size, enum hwmem_alloc_flags flags,
alloc->flags = flags;
alloc->default_access = def_access;
INIT_LIST_HEAD(&alloc->threadg_info_list);
+#ifdef CONFIG_DEBUG_FS
alloc->creator = __builtin_return_address(0);
alloc->creator_tgid = task_tgid_nr(current);
-
+#endif
alloc->mem_type = resolve_mem_type(mem_type);
if (IS_ERR(alloc->mem_type)) {
ret = PTR_ERR(alloc->mem_type);