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 <pullip.cho@samsung.com>
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,
ion_device_add_heap(heap);
return 0;
}
-device_initcall(ion_system_contig_heap_create);
+subsys_initcall_sync(ion_system_contig_heap_create);