Skip to content
Snippets Groups Projects
Commit cf10b7e6 authored by Daniel Rosenberg's avatar Daniel Rosenberg Committed by Nick Desaulniers
Browse files

ion: Disable ION_HEAP_TYPE_SYSTEM_CONTIG


Bug: 30400942
Change-Id: I19fa5bf6e5c66b532b842180b2cf0ae04ddca337
Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
parent 99666f7a
No related merge requests found
......@@ -137,8 +137,9 @@ struct ion_heap *ion_heap_create(struct ion_platform_heap *heap_data)
switch (heap_data->type) {
case ION_HEAP_TYPE_SYSTEM_CONTIG:
heap = ion_system_contig_heap_create(heap_data);
break;
pr_err("%s: Heap type is disabled: %d\n", __func__,
heap_data->type);
return ERR_PTR(-EINVAL);
case ION_HEAP_TYPE_SYSTEM:
heap = ion_system_heap_create(heap_data);
break;
......@@ -174,7 +175,8 @@ void ion_heap_destroy(struct ion_heap *heap)
switch (heap->type) {
case ION_HEAP_TYPE_SYSTEM_CONTIG:
ion_system_contig_heap_destroy(heap);
pr_err("%s: Heap type is disabled: %d\n", __func__,
heap->type);
break;
case ION_HEAP_TYPE_SYSTEM:
ion_system_heap_destroy(heap);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment