From 526a324ea5436a210f884db5ddd66e1ad030cb12 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Fri, 2 Feb 2018 23:01:10 +0900 Subject: [PATCH] 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 --- drivers/staging/android/ion/ion_system_heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1