Traditionally, the system heap is was always zero.
The heap id is created according to the registered order
after kernel 4.12, but the system heap is registered first
to provide compatibility with users to use the system heap.
Change-Id: I46f203a533f6c29b62ced6b49c0a5a5a98e2a914
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
return 0;
}
-subsys_initcall(exynos_ion_register_heaps);
+subsys_initcall_sync(exynos_ion_register_heaps);
ion_device_add_heap(heap);
return 0;
}
-subsys_initcall_sync(ion_system_heap_create);
+subsys_initcall(ion_system_heap_create);
static int ion_system_contig_heap_allocate(struct ion_heap *heap,
struct ion_buffer *buffer,