aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/android
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2019-01-11 12:05:18 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-18 10:46:18 +0100
commitdad407ae7df9448762e2e04b22fecf5ba5ce4e2d (patch)
tree0757b455bb5e2b760f7c79c90ba8e9fb6a881018 /drivers/staging/android
parentstaging: android: ion: Remove base from ion_carveout_heap (diff)
downloadlinux-dev-dad407ae7df9448762e2e04b22fecf5ba5ce4e2d.tar.xz
linux-dev-dad407ae7df9448762e2e04b22fecf5ba5ce4e2d.zip
staging: android: ion: Remove base from ion_chunk_heap
The base address is not used anywhere and tracked by the pool allocator. No need to store this anymore. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r--drivers/staging/android/ion/ion_chunk_heap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/android/ion/ion_chunk_heap.c b/drivers/staging/android/ion/ion_chunk_heap.c
index b82eac1c2d7a..899380beeee1 100644
--- a/drivers/staging/android/ion/ion_chunk_heap.c
+++ b/drivers/staging/android/ion/ion_chunk_heap.c
@@ -18,7 +18,6 @@
struct ion_chunk_heap {
struct ion_heap heap;
struct gen_pool *pool;
- phys_addr_t base;
unsigned long chunk_size;
unsigned long size;
unsigned long allocated;
@@ -131,16 +130,14 @@ struct ion_heap *ion_chunk_heap_create(phys_addr_t base, size_t size, size_t chu
ret = -ENOMEM;
goto error_gen_pool_create;
}
- chunk_heap->base = base;
chunk_heap->size = size;
chunk_heap->allocated = 0;
- gen_pool_add(chunk_heap->pool, chunk_heap->base, size, -1);
+ gen_pool_add(chunk_heap->pool, base, size, -1);
chunk_heap->heap.ops = &chunk_heap_ops;
chunk_heap->heap.type = ION_HEAP_TYPE_CHUNK;
chunk_heap->heap.flags = ION_HEAP_FLAG_DEFER_FREE;
- pr_debug("%s: base %pa size %zu\n", __func__,
- &chunk_heap->base, size);
+ pr_debug("%s: base %pa size %zu\n", __func__, &base, size);
return &chunk_heap->heap;