android: ion: kill system_contig heap
authorCho KyongHo <pullip.cho@samsung.com>
Fri, 2 Feb 2018 13:56:04 +0000 (22:56 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:22 +0000 (19:45 +0900)
system_contig heap is very restrictive to be used by graphic/multimedia
use. Since it relies on the page allocator even for the large
physically contiguous buffers.
Let's kill system_contig heap to prevent users from confusion.

Change-Id: Id5bcca56d2139b95c706c5068d797f77904d4888
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion_system_heap.c

index 81c1ac968d7a63322e4aacb52f11a11781f4c81b..e754f9351d86539984334d94a18313aa253199ad 100644 (file)
@@ -440,7 +440,7 @@ static struct ion_heap *__ion_system_contig_heap_create(void)
        return heap;
 }
 
-static int ion_system_contig_heap_create(void)
+static int __maybe_unused ion_system_contig_heap_create(void)
 {
        struct ion_heap *heap;
 
@@ -451,5 +451,4 @@ static int ion_system_contig_heap_create(void)
        ion_device_add_heap(heap);
        return 0;
 }
-subsys_initcall_sync(ion_system_contig_heap_create);