From: Cho KyongHo Date: Fri, 2 Feb 2018 14:01:10 +0000 (+0900) Subject: android: ion: promote heap add priority X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=526a324ea5436a210f884db5ddd66e1ad030cb12;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git android: ion: promote heap add priority Changed heap registration priority to subsys_initcall_sync() because some drivers calls ion_alloc() in probe() that is called in device_initcall() priority. Change-Id: Ib1a06d147c75b0601c4807cea82dfcaca4cb526a 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 b6ece18e6a88..81c1ac968d7a 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -358,7 +358,7 @@ static int ion_system_heap_create(void) ion_device_add_heap(heap); return 0; } -device_initcall(ion_system_heap_create); +subsys_initcall_sync(ion_system_heap_create); static int ion_system_contig_heap_allocate(struct ion_heap *heap, struct ion_buffer *buffer, @@ -451,5 +451,5 @@ static int ion_system_contig_heap_create(void) ion_device_add_heap(heap); return 0; } -device_initcall(ion_system_contig_heap_create); +subsys_initcall_sync(ion_system_contig_heap_create);