From: Cho KyongHo Date: Fri, 2 Feb 2018 13:56:04 +0000 (+0900) Subject: android: ion: kill system_contig heap X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20a210e6ed8e7722cc70dc2c9e65ecaaa4679382;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git android: ion: kill system_contig heap 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 --- diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 81c1ac968d7a..e754f9351d86 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -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);