summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2015-02-12 15:43:16 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:04:24 -0700
commitc56415c3b1cc3dfcee4ff7be3384bbdf931bb5d3 (patch)
tree93a3ab511761abc1dc5fed8585abbb2026bd0f58
parent570b7fc28aecc228215f3aa8ac7734531d10c441 (diff)
ion: remove stale field from struct ion_buffer
The dmap_cnt field in struct ion_buffer is not used. Remove it. Change-Id: I8a5d388a0e7df8612e424ca15cee27498c018508 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
-rw-r--r--drivers/staging/android/ion/ion_priv.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/android/ion/ion_priv.h b/drivers/staging/android/ion/ion_priv.h
index ce6563c35514..f7827e2c334c 100644
--- a/drivers/staging/android/ion/ion_priv.h
+++ b/drivers/staging/android/ion/ion_priv.h
@@ -2,7 +2,7 @@
* drivers/staging/android/ion/ion_priv.h
*
* Copyright (C) 2011 Google, Inc.
- * Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
@@ -54,9 +54,8 @@ struct ion_buffer *ion_handle_buffer(struct ion_handle *handle);
* an ion_phys_addr_t (and someday a phys_addr_t)
* @lock: protects the buffers cnt fields
* @kmap_cnt: number of times the buffer is mapped to the kernel
- * @vaddr: the kernel mapping if kmap_cnt is not zero
- * @dmap_cnt: number of times the buffer is mapped for dma
- * @sg_table: the sg table for the buffer if dmap_cnt is not zero
+ * @vaddr: the kenrel mapping if kmap_cnt is not zero
+ * @sg_table: the sg table for the buffer
* @pages: flat array of pages in the buffer -- used by fault
* handler and only valid for buffers that are faulted in
* @vmas: list of vma's mapping this buffer
@@ -84,7 +83,6 @@ struct ion_buffer {
struct mutex lock;
int kmap_cnt;
void *vaddr;
- int dmap_cnt;
struct sg_table *sg_table;
struct page **pages;
struct list_head vmas;